diff options
author | Derek Mauro <dmauro@google.com> | 2022-09-06 12:02:16 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-09-06 12:03:05 -0700 |
commit | 60499cf45cde8e3354b58317efac7488cc5151b2 (patch) | |
tree | db2dfabc2b6f3d9126fc787a6d45f8c6fe43c385 /absl/container | |
parent | f2b8a81d637fd480c760e92b06a542bbc63843d2 (diff) |
Convert algorithm and container benchmarks to cc_binary
PiperOrigin-RevId: 472521745
Change-Id: Ia76cd720d1036dce05f6332f41a2ff748b3ea971
Diffstat (limited to 'absl/container')
-rw-r--r-- | absl/container/BUILD.bazel | 6 | ||||
-rw-r--r-- | absl/container/fixed_array_benchmark.cc | 2 | ||||
-rw-r--r-- | absl/container/inlined_vector_benchmark.cc | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/absl/container/BUILD.bazel b/absl/container/BUILD.bazel index b9b3f7bb..d749c1ca 100644 --- a/absl/container/BUILD.bazel +++ b/absl/container/BUILD.bazel @@ -96,8 +96,9 @@ cc_test( ], ) -cc_test( +cc_binary( name = "fixed_array_benchmark", + testonly = 1, srcs = ["fixed_array_benchmark.cc"], copts = ABSL_TEST_COPTS + ["$(STACK_FRAME_UNLIMITED)"], linkopts = ABSL_DEFAULT_LINKOPTS, @@ -166,8 +167,9 @@ cc_test( ], ) -cc_test( +cc_binary( name = "inlined_vector_benchmark", + testonly = 1, srcs = ["inlined_vector_benchmark.cc"], copts = ABSL_TEST_COPTS, linkopts = ABSL_DEFAULT_LINKOPTS, diff --git a/absl/container/fixed_array_benchmark.cc b/absl/container/fixed_array_benchmark.cc index 3c7a5a72..db6663e6 100644 --- a/absl/container/fixed_array_benchmark.cc +++ b/absl/container/fixed_array_benchmark.cc @@ -16,8 +16,8 @@ #include <string> -#include "benchmark/benchmark.h" #include "absl/container/fixed_array.h" +#include "benchmark/benchmark.h" namespace { diff --git a/absl/container/inlined_vector_benchmark.cc b/absl/container/inlined_vector_benchmark.cc index e256fad6..56a6bfd2 100644 --- a/absl/container/inlined_vector_benchmark.cc +++ b/absl/container/inlined_vector_benchmark.cc @@ -16,11 +16,11 @@ #include <string> #include <vector> -#include "benchmark/benchmark.h" #include "absl/base/internal/raw_logging.h" #include "absl/base/macros.h" #include "absl/container/inlined_vector.h" #include "absl/strings/str_cat.h" +#include "benchmark/benchmark.h" namespace { |