Skip to content

Commit

Permalink
Try -benchtime=6x instead of -benchtime=1x -count=6
Browse files Browse the repository at this point in the history
  • Loading branch information
rosstimothy committed Dec 5, 2024
1 parent f0a3853 commit ede6752
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -943,14 +943,14 @@ endif
test-go-bench: PACKAGES = $(shell grep --exclude-dir api --include "*_test.go" -lr testing.B . | xargs dirname | xargs go list | sort -u)
test-go-bench: BENCHMARK_SKIP_PATTERN = "^BenchmarkRoot"
test-go-bench: | $(TEST_LOG_DIR)
go test -run ^$$ -bench . -skip $(BENCHMARK_SKIP_PATTERN) -count=6 $(PACKAGES) \
go test -run ^$$ -bench . -skip $(BENCHMARK_SKIP_PATTERN) -benchtime=6x $(PACKAGES) \
| tee $(TEST_LOG_DIR)/bench.txt

test-go-bench-root: PACKAGES = $(shell grep --exclude-dir api --include "*_test.go" -lr BenchmarkRoot . | xargs dirname | xargs go list | sort -u)
test-go-bench-root: BENCHMARK_PATTERN = "^BenchmarkRoot"
test-go-bench-root: BENCHMARK_SKIP_PATTERN = ""
test-go-bench-root: | $(TEST_LOG_DIR)
go test -run ^$$ -bench $(BENCHMARK_PATTERN) -skip $(BENCHMARK_SKIP_PATTERN) -count=6 $(PACKAGES) \
go test -run ^$$ -bench $(BENCHMARK_PATTERN) -skip $(BENCHMARK_SKIP_PATTERN) -benchtime=6x $(PACKAGES) \
| tee $(TEST_LOG_DIR)/bench.txt

# Make sure untagged vnetdaemon code build/tests.
Expand Down

0 comments on commit ede6752

Please sign in to comment.