Add benchmark competitions to cmake
This commit is contained in:
parent
c1ff74c9a6
commit
7b58fea911
|
@ -57,11 +57,19 @@ objs
|
||||||
/allparsingcompetition
|
/allparsingcompetition
|
||||||
/basictests
|
/basictests
|
||||||
/benchfeatures
|
/benchfeatures
|
||||||
|
/benchmark/allparsingcompetition
|
||||||
/benchmark/bench_dom_api
|
/benchmark/bench_dom_api
|
||||||
/benchmark/bench_parse_call
|
/benchmark/bench_parse_call
|
||||||
|
/benchmark/distinctuseridcompetition
|
||||||
/benchmark/get_corpus_benchmark
|
/benchmark/get_corpus_benchmark
|
||||||
|
/benchmark/minifiercompetition
|
||||||
/benchmark/parse
|
/benchmark/parse
|
||||||
|
/benchmark/parseandstatcompetition
|
||||||
|
/benchmark/parse_nonumberparsing
|
||||||
|
/benchmark/parse_nostringparsing
|
||||||
|
/benchmark/parse_noutf8validation
|
||||||
/benchmark/parse_stream
|
/benchmark/parse_stream
|
||||||
|
/benchmark/parsingcompetition
|
||||||
/benchmark/perfdiff
|
/benchmark/perfdiff
|
||||||
/benchmark/statisticalmodel
|
/benchmark/statisticalmodel
|
||||||
/build/
|
/build/
|
||||||
|
|
|
@ -1,10 +1,18 @@
|
||||||
include_directories( . linux )
|
include_directories( . linux )
|
||||||
link_libraries(simdjson)
|
link_libraries(simdjson)
|
||||||
add_executable(parse parse.cpp)
|
# add_executable(benchfeatures benchfeatures.cpp)
|
||||||
add_executable(statisticalmodel statisticalmodel.cpp)
|
|
||||||
add_executable(parse_stream parse_stream.cpp)
|
|
||||||
add_executable(get_corpus_benchmark get_corpus_benchmark.cpp)
|
add_executable(get_corpus_benchmark get_corpus_benchmark.cpp)
|
||||||
add_executable(perfdiff perfdiff.cpp)
|
add_executable(perfdiff perfdiff.cpp)
|
||||||
|
add_executable(parse parse.cpp)
|
||||||
|
add_executable(parse_stream parse_stream.cpp)
|
||||||
|
add_executable(statisticalmodel statisticalmodel.cpp)
|
||||||
|
|
||||||
|
add_executable(parse_noutf8validation parse.cpp)
|
||||||
|
target_compile_definitions(parse_noutf8validation PRIVATE SIMDJSON_SKIPUTF8VALIDATION)
|
||||||
|
add_executable(parse_nonumberparsing parse.cpp)
|
||||||
|
target_compile_definitions(parse_nonumberparsing PRIVATE SIMDJSON_SKIPNUMBERPARSING)
|
||||||
|
add_executable(parse_nostringparsing parse.cpp)
|
||||||
|
target_compile_definitions(parse_nostringparsing PRIVATE SIMDJSON_SKIPSTRINGPARSING)
|
||||||
|
|
||||||
# Google Benchmarks
|
# Google Benchmarks
|
||||||
if (SIMDJSON_GOOGLE_BENCHMARKS)
|
if (SIMDJSON_GOOGLE_BENCHMARKS)
|
||||||
|
@ -12,4 +20,16 @@ if (SIMDJSON_GOOGLE_BENCHMARKS)
|
||||||
add_executable(bench_parse_call bench_parse_call.cpp)
|
add_executable(bench_parse_call bench_parse_call.cpp)
|
||||||
add_executable(bench_dom_api bench_dom_api.cpp)
|
add_executable(bench_dom_api bench_dom_api.cpp)
|
||||||
target_link_libraries(bench_dom_api test-data)
|
target_link_libraries(bench_dom_api test-data)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_executable(distinctuseridcompetition distinctuseridcompetition.cpp)
|
||||||
|
target_link_libraries(distinctuseridcompetition competition-core)
|
||||||
|
add_executable(minifiercompetition minifiercompetition.cpp)
|
||||||
|
target_link_libraries(minifiercompetition competition-core)
|
||||||
|
add_executable(parseandstatcompetition parseandstatcompetition.cpp)
|
||||||
|
target_link_libraries(parseandstatcompetition competition-core)
|
||||||
|
add_executable(parsingcompetition parsingcompetition.cpp)
|
||||||
|
target_link_libraries(parsingcompetition competition-core)
|
||||||
|
add_executable(allparsingcompetition parsingcompetition.cpp)
|
||||||
|
target_link_libraries(allparsingcompetition competition-all)
|
||||||
|
target_compile_definitions(allparsingcompetition PRIVATE ALLPARSER)
|
||||||
|
|
Loading…
Reference in New Issue