https://github.com/daniel-sc/json-parser-performance-evaluation
https://github.com/daniel-sc/json-parser-performance-evaluation
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/daniel-sc/json-parser-performance-evaluation
- Owner: daniel-sc
- Created: 2024-02-15T21:25:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-19T08:12:21.000Z (over 2 years ago)
- Last Synced: 2025-03-20T11:42:30.854Z (over 1 year ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Comparing performance of different json streaming parsers for PHP
This repository contains a simple benchmark to compare the performance of different JSON streaming parsers for PHP.
Results:
```text
json_decode:
memory peak: 1.234375 kB
clock time sec: 0.20915102958679
CPU time ms: 125 ms
JsonParser:
memory peak: 3724.5859375 kB
clock time sec: 11.772974967957
CPU time ms: 5203.125 ms
json-machine:
memory peak: 214.3359375 kB
clock time sec: 2.2307989597321
CPU time ms: 859.375 ms
jsonstreamingparser:
memory peak: 78.609375 kB
clock time sec: 6.5879240036011
CPU time ms: 3046.875 ms
```