Sha256: 05a8b0a715192dcca2338dbd69aab0da0da2327f27ee2f78b824b07b3270447a
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
cmake_minimum_required(VERSION 3.8) project(JSON_Benchmarks LANGUAGES CXX) # set compiler flags if((CMAKE_CXX_COMPILER_ID MATCHES GNU) OR (CMAKE_CXX_COMPILER_ID MATCHES Clang)) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flto -DNDEBUG -O3") endif() # configure Google Benchmarks set(BENCHMARK_ENABLE_TESTING OFF CACHE INTERNAL "" FORCE) add_subdirectory(thirdparty/benchmark) # header directories include_directories(thirdparty) include_directories(${CMAKE_SOURCE_DIR}/../single_include) # copy test files to build folder file(COPY ${CMAKE_SOURCE_DIR}/data DESTINATION .) file(COPY ${CMAKE_SOURCE_DIR}/../test/data/regression/floats.json ${CMAKE_SOURCE_DIR}/../test/data/regression/unsigned_ints.json ${CMAKE_SOURCE_DIR}/../test/data/regression/signed_ints.json ${CMAKE_SOURCE_DIR}/../test/data/regression/small_signed_ints.json DESTINATION data/numbers) # benchmark binary add_executable(json_benchmarks src/benchmarks.cpp) target_compile_features(json_benchmarks PRIVATE cxx_std_11) target_link_libraries(json_benchmarks benchmark ${CMAKE_THREAD_LIBS_INIT})
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simdjson-0.3.0 | vendor/simdjson/dependencies/json/benchmarks/CMakeLists.txt |