https://github.com/jcash/json-tests
A small performance comparison between some C/C++ json libraries
https://github.com/jcash/json-tests
Last synced: about 1 year ago
JSON representation
A small performance comparison between some C/C++ json libraries
- Host: GitHub
- URL: https://github.com/jcash/json-tests
- Owner: JCash
- License: mit
- Created: 2022-10-08T13:03:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-20T15:42:38.000Z (over 3 years ago)
- Last Synced: 2025-01-24T12:45:33.037Z (over 1 year ago)
- Language: C
- Size: 1.71 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#
## Setup + Build
(Only tested with macOS)
Install submodules and then build:
$ ./update_submodules.sh
$ ./compile_tests.sh
Prerequisites for the image generation are `matplotlib` and `numpy`:
$ brew install numpy matplotlib
## Run tests
./run_tests.py
./generate_images.sh
## Results
Tested on macOS M1 (arm64)
[parse](./reports/parse.json)
[traverse](./reports/traverse.json)
[memory](./reports/memory.json)
[allocations](./reports/allocations.json)


# Links
* https://github.com/ibireme/yyjson
* https://github.com/DaveGamble/cJSON
* https://github.com/dacez/zzzjson
* https://github.com/kgabis/parson
* https://github.com/simdjson/simdjson