diff --git a/pkg/cmd/dev/bench.go b/pkg/cmd/dev/bench.go index 96eee570ed39..1e8b7261bf6a 100644 --- a/pkg/cmd/dev/bench.go +++ b/pkg/cmd/dev/bench.go @@ -105,6 +105,7 @@ func (d *dev) bench(cmd *cobra.Command, commandLine []string) error { args = append(args, "--nocache_test_results") } + args = append(args, "--test_arg", "-test.run=-") if filter == "" { args = append(args, "--test_arg", "-test.bench=.") } else { diff --git a/pkg/cmd/dev/testdata/datadriven/bench b/pkg/cmd/dev/testdata/datadriven/bench index 778085f057bb..f2a0d2a15ce1 100644 --- a/pkg/cmd/dev/testdata/datadriven/bench +++ b/pkg/cmd/dev/testdata/datadriven/bench @@ -1,15 +1,15 @@ dev bench pkg/spanconfig/... ---- -bazel test pkg/spanconfig/...:all --test_arg -test.bench=. --test_output errors +bazel test pkg/spanconfig/...:all --test_arg -test.run=- --test_arg -test.bench=. --test_output errors dev bench pkg/sql/parser --filter=BenchmarkParse ---- -bazel test pkg/sql/parser:all --test_arg -test.bench=BenchmarkParse --test_output errors +bazel test pkg/sql/parser:all --test_arg -test.run=- --test_arg -test.bench=BenchmarkParse --test_output errors dev bench pkg/bench -f=BenchmarkTracing/1node/scan/trace=off --count=2 --bench-time=10x --bench-mem ---- -bazel test pkg/bench:all --test_arg -test.bench=BenchmarkTracing/1node/scan/trace=off --test_arg -test.count=2 --test_arg -test.benchtime=10x --test_arg -test.benchmem --test_output errors +bazel test pkg/bench:all --test_arg -test.run=- --test_arg -test.bench=BenchmarkTracing/1node/scan/trace=off --test_arg -test.count=2 --test_arg -test.benchtime=10x --test_arg -test.benchmem --test_output errors dev bench pkg/spanconfig/spanconfigkvsubscriber -f=BenchmarkSpanConfigDecoder --cpus=10 --ignore-cache -v --timeout=50s ---- -bazel test --local_cpu_resources=10 --test_timeout=50 pkg/spanconfig/spanconfigkvsubscriber:all --nocache_test_results --test_arg -test.bench=BenchmarkSpanConfigDecoder --test_arg -test.v --test_output all +bazel test --local_cpu_resources=10 --test_timeout=50 pkg/spanconfig/spanconfigkvsubscriber:all --nocache_test_results --test_arg -test.run=- --test_arg -test.bench=BenchmarkSpanConfigDecoder --test_arg -test.v --test_output all