Skip to content

Commit 05860a1

Browse files
committed
Adding google benchmark
1 parent 497d847 commit 05860a1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

BUILD

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ cc_binary(
1111
)
1212

1313
cc_binary(
14+
# deprecated in favor of benchmarks below
1415
name = "benchmark",
1516
srcs = ["benchmark.cc", "tictoc.hpp"],
1617
deps = [":soa"]
1718
)
19+
20+
cc_binary(
21+
name = "benchmarks",
22+
srcs = ["benchmarks.cc"],
23+
deps = [":soa",
24+
"@com_github_google_benchmark//:benchmark_main"]
25+
)

WORKSPACE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
workspace(name = "vapid")
2+
3+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4+
5+
http_archive(
6+
name = "com_github_google_benchmark",
7+
url = "https://github.com/google/benchmark/archive/refs/tags/v1.6.1.zip",
8+
strip_prefix = "benchmark-1.6.1")

0 commit comments

Comments
 (0)