Commit 60499cf4 by Derek Mauro Committed by Copybara-Service

Convert algorithm and container benchmarks to cc_binary

PiperOrigin-RevId: 472521745
Change-Id: Ia76cd720d1036dce05f6332f41a2ff748b3ea971
parent f2b8a81d
...@@ -48,8 +48,9 @@ cc_test( ...@@ -48,8 +48,9 @@ cc_test(
], ],
) )
cc_test( cc_binary(
name = "algorithm_benchmark", name = "algorithm_benchmark",
testonly = 1,
srcs = ["equal_benchmark.cc"], srcs = ["equal_benchmark.cc"],
copts = ABSL_TEST_COPTS, copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
#include <cstdint> #include <cstdint>
#include <cstring> #include <cstring>
#include "benchmark/benchmark.h"
#include "absl/algorithm/algorithm.h" #include "absl/algorithm/algorithm.h"
#include "benchmark/benchmark.h"
namespace { namespace {
......
...@@ -96,8 +96,9 @@ cc_test( ...@@ -96,8 +96,9 @@ cc_test(
], ],
) )
cc_test( cc_binary(
name = "fixed_array_benchmark", name = "fixed_array_benchmark",
testonly = 1,
srcs = ["fixed_array_benchmark.cc"], srcs = ["fixed_array_benchmark.cc"],
copts = ABSL_TEST_COPTS + ["$(STACK_FRAME_UNLIMITED)"], copts = ABSL_TEST_COPTS + ["$(STACK_FRAME_UNLIMITED)"],
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
...@@ -166,8 +167,9 @@ cc_test( ...@@ -166,8 +167,9 @@ cc_test(
], ],
) )
cc_test( cc_binary(
name = "inlined_vector_benchmark", name = "inlined_vector_benchmark",
testonly = 1,
srcs = ["inlined_vector_benchmark.cc"], srcs = ["inlined_vector_benchmark.cc"],
copts = ABSL_TEST_COPTS, copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS, linkopts = ABSL_DEFAULT_LINKOPTS,
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#include <string> #include <string>
#include "benchmark/benchmark.h"
#include "absl/container/fixed_array.h" #include "absl/container/fixed_array.h"
#include "benchmark/benchmark.h"
namespace { namespace {
......
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "benchmark/benchmark.h"
#include "absl/base/internal/raw_logging.h" #include "absl/base/internal/raw_logging.h"
#include "absl/base/macros.h" #include "absl/base/macros.h"
#include "absl/container/inlined_vector.h" #include "absl/container/inlined_vector.h"
#include "absl/strings/str_cat.h" #include "absl/strings/str_cat.h"
#include "benchmark/benchmark.h"
namespace { namespace {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment