Compare with rapidjson

This commit is contained in:
2025-08-16 22:18:33 -04:00
parent 5ffef98e3d
commit 628fe466ef
2 changed files with 608 additions and 1 deletions

View File

@@ -43,6 +43,13 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(nlohmann_json)
FetchContent_Declare(
RapidJSON
GIT_REPOSITORY https://github.com/Tencent/rapidjson.git
GIT_TAG ab1842a2dae061284c0a62dca1cc6d5e7e37e346 # v1.1.0
)
FetchContent_MakeAvailable(RapidJSON)
set(SIMDUTF_TESTS
OFF
CACHE BOOL "Disable simdutf tests" FORCE)
@@ -105,7 +112,8 @@ add_executable(
src/commit_request.cpp src/arena_allocator.cpp)
target_link_libraries(bench_parser_comparison nanobench weaseljson test_data
nlohmann_json::nlohmann_json simdutf::simdutf)
target_include_directories(bench_parser_comparison PRIVATE src)
target_include_directories(bench_parser_comparison
PRIVATE src ${rapidjson_SOURCE_DIR}/include)
# Debug tools
add_executable(debug_arena tools/debug_arena.cpp src/commit_request.cpp