https://github.com/realtimechris/json-performance
A few C++ json-library benchmarks, of the fastest few libraries.
https://github.com/realtimechris/json-performance
glaze-vs-simdjson jsonifier-vs-glaze jsonifier-vs-simdjson
Last synced: about 1 year ago
JSON representation
A few C++ json-library benchmarks, of the fastest few libraries.
- Host: GitHub
- URL: https://github.com/realtimechris/json-performance
- Owner: RealTimeChris
- License: mit
- Created: 2023-03-16T14:03:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-15T04:02:22.000Z (over 1 year ago)
- Last Synced: 2025-03-28T09:03:05.407Z (over 1 year ago)
- Topics: glaze-vs-simdjson, jsonifier-vs-glaze, jsonifier-vs-simdjson
- Language: C++
- Homepage:
- Size: 314 MB
- Stars: 25
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: License.md
Awesome Lists containing this project
README
# Json-Performance
Here's a few benchmarks on a few common operating system/compiler platforms. Although feel free to try it out on more and let me know if you do/what scores you get! Cheers! (Click each of the badges below to be taken to the respective benchmarks). Also I will add some instructions for building below.
### The Libraries
- [Jsonifier](https://github.com/realtimechris/jsonifier)
- [Glaze](https://github.com/stephenberry/glaze)
- [SimdJson](https://github.com/simdjson/simdjson)
### By OS/Compiler:
----
#### Ubuntu Linux/CLANG:
----
[](https://github.com/RealTimeChris/Json-Performance/blob/main/Ubuntu-CLANG.md)
#### Microsoft Windows/MSVC:
----
[](https://github.com/RealTimeChris/Json-Performance/blob/main/Windows-MSVC.md)
#### Ubuntu Linux/GNUCXX:
----
[](https://github.com/RealTimeChris/Json-Performance/blob/main/Ubuntu-GNUCXX.md)
#### MacOS/CLANG:
----
[](https://github.com/RealTimeChris/Json-Performance/blob/main/MacOS-CLANG.md)
#### MacOS/GNUCXX:
----
[](https://github.com/RealTimeChris/Json-Performance/blob/main/MacOS-GNUCXX.md)
### Pre-requisites:
---
1. CMake 3.28 or later.
2. A C++20 compliant compiler.
3. Python3 and Seaborn for generating the graphs.
### Build Instructions:
---
1. Clone the repo.
2. 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`)
4. Then enter `cmake --build ./Build --config=RELEASE_OR_DEBUG`
5. Then enter `cmake --install ./Build`
6. Run the executable from wherever it was installed to!