|
23 | 23 |
|
24 | 24 | ## Speed comparison |
25 | 25 |
|
26 | | -| Metric | simdjson | c-json-parser(*) | c-json-parser | c-json-parser | json-c | |
27 | | -| :---------------------------------------| ------------------: | ------------------: | ------------------: | ------------------: | ------------------: | |
28 | | -| execution time (100K run) | 00:00:00.393 | 00:00:00.180 | 00:00:00.225 | 00:00:01.182 | 00:00:04.093 | |
29 | | -| execution time (1M runs) | 00:00:03.959 | 00:00:00.891 | 00:00:00.895 | 00:00:11.838 | 00:00:42.702 | |
30 | | -| allocation calls (100K runs) | - | 0 | 0 | 20,000,000 | 52,900,000 | |
31 | | -| allocation calls (1M runs) | - | 0 | 0 | 200,000,000 | 529,000,000 | |
32 | | -| total heap usage (100K runs) | - | 0 | 0 | 806,400,000 | 4,179,600,000 | |
33 | | -| total heap usage (1M runs) | - | 0 | 0 | 8,064,000,000 | 41,796,000,000 | |
| 26 | +| Metric | simdjson | c-json-parser(*) | c-json-parser | json-c | |
| 27 | +| :---------------------------------------| ------------------: | ------------------: | ------------------: | ------------------: | |
| 28 | +| execution time (100K run) | 00:00:00.476 | 00:00:00.179 | 00:00:00.236 | 00:00:04.093 | |
| 29 | +| execution time (1M runs) | 00:00:04.798 | 00:00:00.930 | 00:00:00.945 | 00:00:42.702 | |
| 30 | +| allocation calls (100K runs) | - | 0 | 0 | 52,900,000 | |
| 31 | +| allocation calls (1M runs) | - | 0 | 0 | 529,000,000 | |
| 32 | +| total heap usage (100K runs) | - | 0 | 0 | 4,179,600,000 | |
| 33 | +| total heap usage (1M runs) | - | 0 | 0 | 41,796,000,000 | |
34 | 34 |
|
35 | 35 | (*) - version without string literal validation (`./perf.sh perf-c-json-parser-no-string-validation`) |
36 | 36 |
|
|
0 commit comments