Switch to our custom benchmark main. (#4567)

I'm working on speeding up the benchmark tests and noticed they weren't
using our main, seemed worth cleaning that up.
This commit is contained in:
Chandler Carruth
2024-11-22 00:46:09 +00:00
committed by GitHub
parent 67f2c9ce26
commit 637539726d
+6 -6
View File
@@ -285,10 +285,11 @@ cc_binary(
deps = [
":map",
":raw_hashtable_benchmark_helpers",
"//testing/base:benchmark_main",
"@abseil-cpp//absl/container:flat_hash_map",
"@abseil-cpp//absl/random",
"@boost_unordered",
"@google_benchmark//:benchmark_main",
"@google_benchmark//:benchmark",
"@llvm-project//llvm:Support",
],
)
@@ -301,7 +302,6 @@ sh_test(
timeout = "short",
srcs = [":map_benchmark"],
args = [
"--benchmark_counters_tabular=true",
"--benchmark_min_time=1x",
# The `$$` is repeated for Bazel escaping of `$`.
"--benchmark_filter=^[^/]*/[1-9][0-9]{0,3}(/[0-9]+)?$$",
@@ -346,8 +346,9 @@ cc_binary(
srcs = ["raw_hashtable_metadata_group_benchmark.cpp"],
deps = [
":raw_hashtable_metadata_group",
"//testing/base:benchmark_main",
"@abseil-cpp//absl/random",
"@google_benchmark//:benchmark_main",
"@google_benchmark//:benchmark",
"@llvm-project//llvm:Support",
],
)
@@ -356,7 +357,6 @@ sh_test(
name = "raw_hashtable_metadata_group_benchmark_test",
srcs = ["raw_hashtable_metadata_group_benchmark"],
args = [
"--benchmark_counters_tabular=true",
"--benchmark_min_time=1x",
],
)
@@ -424,8 +424,9 @@ cc_binary(
deps = [
":raw_hashtable_benchmark_helpers",
":set",
"//testing/base:benchmark_main",
"@abseil-cpp//absl/container:flat_hash_set",
"@google_benchmark//:benchmark_main",
"@google_benchmark//:benchmark",
"@llvm-project//llvm:Support",
],
)
@@ -438,7 +439,6 @@ sh_test(
timeout = "short",
srcs = [":set_benchmark"],
args = [
"--benchmark_counters_tabular=true",
"--benchmark_min_time=1x",
# The `$$` is repeated for Bazel escaping of `$`.
"--benchmark_filter=^[^/]*/[1-9][0-9]{0,3}(/[0-9]+)?$$",