Json-Performance
August 28, 2026 Ā· View on GitHub
Here's a few benchmarks on a few common operating system/compiler platforms. Although feel free to try it out on more and let us know if you do/what scores you get! Cheers! (Click each of the badges below to be taken to the respective benchmarks). Also we will add some instructions for building below.
The Libraries
The Branches
- Full Parsing + Serializing
- Scalar Structural Parsing vs simdjson with simd
- Stage-1 Parsing
- Stage-1 Parsing (AVX512)
- Stage-1 + Stage-2 Parsing + Utf8 Validation
- Correctness Validation
"Anytime someone comes to you with one benchmark? They have gamed that benchmark."
ā Matt Kulukundis, CppCon 2017
By OS/Compiler:
Linux/Clang:
Windows/MSVC:
Linux/GCC:
macOS/Clang:
macOS/GCC:
Pre-requisites:
- CMake 3.28 or later.
- A C++20 compliant compiler.
- Python3 and Seaborn for generating the graphs.
Build Instructions:
- Clone the repo.
- Cd into the repo's folder and enter
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=RELEASE_OR_DEBUG -DCMAKE_CXX_COMPILER=PATH_TO_COMPILER_EXECUTABLE(NOTE: Optionally set a manual installation path by setting-DCMAKE_INSTALL_PREFIX=CUSTOM_INSTALLATION_PATH) - Then enter
cmake --build ./Build --config=RELEASE_OR_DEBUG - Then enter
cmake --install ./Build - Run the executable from wherever it was installed to!
Note:
These benchmarks were executed using the CPU benchmark library benchmarksuite