Skip to content

Commit 7b58fea

Browse files
committed
Add benchmark competitions to cmake
1 parent c1ff74c commit 7b58fea

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,19 @@ objs
5757
/allparsingcompetition
5858
/basictests
5959
/benchfeatures
60+
/benchmark/allparsingcompetition
6061
/benchmark/bench_dom_api
6162
/benchmark/bench_parse_call
63+
/benchmark/distinctuseridcompetition
6264
/benchmark/get_corpus_benchmark
65+
/benchmark/minifiercompetition
6366
/benchmark/parse
67+
/benchmark/parseandstatcompetition
68+
/benchmark/parse_nonumberparsing
69+
/benchmark/parse_nostringparsing
70+
/benchmark/parse_noutf8validation
6471
/benchmark/parse_stream
72+
/benchmark/parsingcompetition
6573
/benchmark/perfdiff
6674
/benchmark/statisticalmodel
6775
/build/

benchmark/CMakeLists.txt

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,35 @@
11
include_directories( . linux )
22
link_libraries(simdjson)
3-
add_executable(parse parse.cpp)
4-
add_executable(statisticalmodel statisticalmodel.cpp)
5-
add_executable(parse_stream parse_stream.cpp)
3+
# add_executable(benchfeatures benchfeatures.cpp)
64
add_executable(get_corpus_benchmark get_corpus_benchmark.cpp)
75
add_executable(perfdiff perfdiff.cpp)
6+
add_executable(parse parse.cpp)
7+
add_executable(parse_stream parse_stream.cpp)
8+
add_executable(statisticalmodel statisticalmodel.cpp)
9+
10+
add_executable(parse_noutf8validation parse.cpp)
11+
target_compile_definitions(parse_noutf8validation PRIVATE SIMDJSON_SKIPUTF8VALIDATION)
12+
add_executable(parse_nonumberparsing parse.cpp)
13+
target_compile_definitions(parse_nonumberparsing PRIVATE SIMDJSON_SKIPNUMBERPARSING)
14+
add_executable(parse_nostringparsing parse.cpp)
15+
target_compile_definitions(parse_nostringparsing PRIVATE SIMDJSON_SKIPSTRINGPARSING)
816

917
# Google Benchmarks
1018
if (SIMDJSON_GOOGLE_BENCHMARKS)
1119
link_libraries(benchmark::benchmark)
1220
add_executable(bench_parse_call bench_parse_call.cpp)
1321
add_executable(bench_dom_api bench_dom_api.cpp)
1422
target_link_libraries(bench_dom_api test-data)
15-
endif()
23+
endif()
24+
25+
add_executable(distinctuseridcompetition distinctuseridcompetition.cpp)
26+
target_link_libraries(distinctuseridcompetition competition-core)
27+
add_executable(minifiercompetition minifiercompetition.cpp)
28+
target_link_libraries(minifiercompetition competition-core)
29+
add_executable(parseandstatcompetition parseandstatcompetition.cpp)
30+
target_link_libraries(parseandstatcompetition competition-core)
31+
add_executable(parsingcompetition parsingcompetition.cpp)
32+
target_link_libraries(parsingcompetition competition-core)
33+
add_executable(allparsingcompetition parsingcompetition.cpp)
34+
target_link_libraries(allparsingcompetition competition-all)
35+
target_compile_definitions(allparsingcompetition PRIVATE ALLPARSER)

0 commit comments

Comments
 (0)