Merge pull request #80 from BYVoid/bench

Add benchmark binary to Bazel BUILD.
This commit is contained in:
Daniel Lemire 2024-10-31 11:14:09 -04:00 committed by GitHub
commit bc93aee338
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -10,3 +10,13 @@ cc_test(
srcs = ["tests/unit.cpp"],
deps = [":fast_double_parser"],
)
cc_binary(
name = "benchmark",
srcs = ["benchmarks/benchmark.cpp"],
deps = [
":fast_double_parser",
"@abseil-cpp//absl/strings",
"@double-conversion",
],
)

View file

@ -5,3 +5,6 @@ module(
version = "0.8.0",
compatibility_level = 0,
)
bazel_dep(name = "abseil-cpp", version = "20240722.0", dev_dependency = True)
bazel_dep(name = "double-conversion", version = "3.3.0", dev_dependency = True)