diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-03 03:21:50 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-03 03:21:50 +0300 |
commit | 0df5875a0ea49c4e7e05274d180b07f5cb56743d (patch) | |
tree | dbc2da0da3a42c5253aa62aec61aaa1c18ec0483 /test/benchmarks/CMakeLists.txt | |
parent | add Google's benchmark library as a submodule (diff) | |
download | math-server-0df5875a0ea49c4e7e05274d180b07f5cb56743d.tar.gz math-server-0df5875a0ea49c4e7e05274d180b07f5cb56743d.zip |
add a basic benchmark for lexer
I suspect std::regex is _horribly_ slow.
Will compare it to boost::regex, then decide.
Diffstat (limited to 'test/benchmarks/CMakeLists.txt')
-rw-r--r-- | test/benchmarks/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/benchmarks/CMakeLists.txt b/test/benchmarks/CMakeLists.txt new file mode 100644 index 0000000..89d9858 --- /dev/null +++ b/test/benchmarks/CMakeLists.txt @@ -0,0 +1,12 @@ +add_executable(benchmarks lexer.cpp) +set_target_properties(benchmarks PROPERTIES OUTPUT_NAME math-server-benchmarks) + +target_link_libraries(benchmarks PRIVATE lexer) +target_include_directories(benchmarks PRIVATE ../..) + +target_link_libraries(benchmarks PRIVATE benchmark benchmark_main) + +install(TARGETS benchmarks RUNTIME DESTINATION bin) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + install(FILES "$<TARGET_PDB_FILE:benchmarks>" DESTINATION bin OPTIONAL) +endif() |