Skip to content

Commit 62fb615

Browse files
authored
Merge pull request #350 from fastfloat/add_bench_ip
adding IP address benchmark
2 parents ca1057e + c54e4a7 commit 62fb615

File tree

6 files changed

+190
-1410
lines changed

6 files changed

+190
-1410
lines changed

benchmarks/CMakeLists.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1+
include(FetchContent)
2+
3+
FetchContent_Declare(
4+
counters
5+
GIT_REPOSITORY https://github.com/lemire/counters.git
6+
GIT_TAG v2.0.0
7+
)
8+
9+
FetchContent_MakeAvailable(counters)
10+
111
add_executable(realbenchmark benchmark.cpp)
12+
target_link_libraries(realbenchmark PRIVATE counters::counters)
13+
add_executable(bench_ip bench_ip.cpp)
14+
target_link_libraries(bench_ip PRIVATE counters::counters)
15+
216
set_property(
317
TARGET realbenchmark
418
PROPERTY CXX_STANDARD 17)
5-
19+
set_property(
20+
TARGET bench_ip
21+
PROPERTY CXX_STANDARD 17)
622
target_link_libraries(realbenchmark PUBLIC fast_float)
23+
target_link_libraries(bench_ip PUBLIC fast_float)
24+
725
include(ExternalProject)
826

927
# Define the external project

0 commit comments

Comments
 (0)