Convert algorithm and container benchmarks to cc_binary

PiperOrigin-RevId: 472521745
Change-Id: Ia76cd720d1036dce05f6332f41a2ff748b3ea971
pull/1277/head
Derek Mauro 2 years ago committed by Copybara-Service
parent f2b8a81d63
commit 60499cf45c
  1. 3
      absl/algorithm/BUILD.bazel
  2. 2
      absl/algorithm/equal_benchmark.cc
  3. 6
      absl/container/BUILD.bazel
  4. 2
      absl/container/fixed_array_benchmark.cc
  5. 2
      absl/container/inlined_vector_benchmark.cc

@ -48,8 +48,9 @@ cc_test(
],
)
cc_test(
cc_binary(
name = "algorithm_benchmark",
testonly = 1,
srcs = ["equal_benchmark.cc"],
copts = ABSL_TEST_COPTS,
linkopts = ABSL_DEFAULT_LINKOPTS,

@ -15,8 +15,8 @@
#include <cstdint>
#include <cstring>
#include "benchmark/benchmark.h"
#include "absl/algorithm/algorithm.h"
#include "benchmark/benchmark.h"
namespace {

@ -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,

@ -16,8 +16,8 @@
#include <string>
#include "benchmark/benchmark.h"
#include "absl/container/fixed_array.h"
#include "benchmark/benchmark.h"
namespace {

@ -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 {

Loading…
Cancel
Save