run fewer concurrency level benchmarks, add bench Makefile target

The benchmarks take an absurdly long time to run, and I think these are the
largest offenders. Dropping to two concurrency cases 2 and 16 should give a
pretty good idea.
This commit is contained in:
Matt Jaffee 2019-03-27 13:32:56 -05:00
parent 4955dff22f
commit e9db8eb2c2
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF
2 changed files with 4 additions and 1 deletions

View file

@ -31,6 +31,9 @@ vendor: go.mod
test:
go test ./... -tags='$(BUILD_TAGS)' $(TESTFLAGS)
bench:
go test ./... -bench=. -run=NoneZ -timeout=127m $(TESTFLAGS)
# Run test suite with coverage enabled
cover:
mkdir -p build

View file

@ -1987,7 +1987,7 @@ func BenchmarkFragment_Import(b *testing.B) {
var (
rowCases = []uint64{2, 50, 1000, 100000}
colCases = []uint64{20, 1000, 50000, 500000}
concurrencyCases = []int{2, 4, 8, 16}
concurrencyCases = []int{2, 16}
)
func BenchmarkImportRoaring(b *testing.B) {