https://github.com/darkterminal/big-json
https://github.com/darkterminal/big-json
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/darkterminal/big-json
- Owner: darkterminal
- Created: 2024-05-12T05:51:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-13T00:39:55.000Z (over 1 year ago)
- Last Synced: 2025-08-22T05:02:18.613Z (5 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Big JSON
Read and Write a big json.
## Reading Time Comparations
This reading method is using custom php function named `read_json_file` build using Rust and read using json-machine library and `simdjson_decode` using foreach-loop
| Filezie | Filename | JSON Machine | simdjson_decode |
| ------------ | --------------------- | ---------------- | ---------------- |
| 85M | 100-000-data.json | 12.258496999741 | 1.2215161323547 |
| 169M | 200-000-data.json | 22.948163986206 | 3.7172930240631 |
| 422M | 500-000-data.json | 70.838052034378 | 7.4947230815887 |
| 674M | 800-000-data.json | 97.320855855942 | 13.613089084625 |
| 843M | 1-000-000-data.json | 120.48568701744 | 18.800848960876 |
| 1,3G | 1-500-000-data.json | 172.90668702126 | 172.90668702126 |