Skip to content

Commit 5458cc3

Browse files
committed
chore: update readme benchmarks
1 parent d4b9b06 commit 5458cc3

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,38 @@ fast-json-stringify requires a [JSON Schema Draft 7](https://json-schema.org/spe
1717

1818
##### Benchmarks
1919

20-
- Machine: `EX41S-SSD, Intel Core i7, 4Ghz, 64GB RAM, 4C/8T, SSD`.
21-
- Node.js `v18.12.1`
20+
- Machine: `2TB SK Hynix Platinum P41 PCIe NVMe Gen4, AMD Ryzen 7 5800X, 4.2Ghz, 16GB RAM, 8C/16T`.
21+
- Node.js `v20.10.0`
2222

2323
```
24-
FJS creation x 4,129 ops/sec ±0.82% (92 runs sampled)
25-
CJS creation x 184,196 ops/sec ±0.12% (97 runs sampled)
26-
AJV Serialize creation x 61,130,591 ops/sec ±0.40% (92 runs sampled)
27-
JSON.stringify array x 5,057 ops/sec ±0.10% (100 runs sampled)
28-
fast-json-stringify array default x 6,243 ops/sec ±0.14% (98 runs sampled)
29-
fast-json-stringify array json-stringify x 6,261 ops/sec ±0.30% (99 runs sampled)
30-
compile-json-stringify array x 6,842 ops/sec ±0.18% (96 runs sampled)
31-
AJV Serialize array x 6,964 ops/sec ±0.11% (95 runs sampled)
32-
JSON.stringify large array x 248 ops/sec ±0.07% (90 runs sampled)
33-
fast-json-stringify large array default x 99.96 ops/sec ±0.22% (74 runs sampled)
34-
fast-json-stringify large array json-stringify x 248 ops/sec ±0.07% (90 runs sampled)
35-
compile-json-stringify large array x 317 ops/sec ±0.09% (89 runs sampled)
36-
AJV Serialize large array x 111 ops/sec ±0.07% (33 runs sampled)
37-
JSON.stringify long string x 16,002 ops/sec ±0.09% (98 runs sampled)
38-
fast-json-stringify long string x 15,979 ops/sec ±0.09% (96 runs sampled)
39-
compile-json-stringify long string x 15,952 ops/sec ±0.31% (97 runs sampled)
40-
AJV Serialize long string x 21,416 ops/sec ±0.08% (98 runs sampled)
41-
JSON.stringify short string x 12,944,272 ops/sec ±0.09% (96 runs sampled)
42-
fast-json-stringify short string x 30,585,790 ops/sec ±0.27% (97 runs sampled)
43-
compile-json-stringify short string x 30,656,406 ops/sec ±0.12% (96 runs sampled)
44-
AJV Serialize short string x 30,406,785 ops/sec ±0.37% (96 runs sampled)
45-
JSON.stringify obj x 3,153,043 ops/sec ±0.33% (99 runs sampled)
46-
fast-json-stringify obj x 6,866,434 ops/sec ±0.11% (100 runs sampled)
47-
compile-json-stringify obj x 15,886,723 ops/sec ±0.15% (98 runs sampled)
48-
AJV Serialize obj x 8,969,043 ops/sec ±0.36% (97 runs sampled)
49-
JSON stringify date x 1,126,547 ops/sec ±0.09% (97 runs sampled)
50-
fast-json-stringify date format x 1,836,188 ops/sec ±0.12% (99 runs sampled)
51-
compile-json-stringify date format x 1,125,735 ops/sec ±0.19% (98 runs sampled)
24+
FJS creation x 7,679 ops/sec ±1.16% (90 runs sampled)
25+
CJS creation x 201,144 ops/sec ±0.40% (97 runs sampled)
26+
AJV Serialize creation x 117,714,399 ops/sec ±0.67% (94 runs sampled)
27+
JSON.stringify array x 4,068 ops/sec ±0.92% (97 runs sampled)
28+
fast-json-stringify array default x 10,746 ops/sec ±0.54% (93 runs sampled)
29+
fast-json-stringify array json-stringify x 11,102 ops/sec ±0.93% (93 runs sampled)
30+
compile-json-stringify array x 10,656 ops/sec ±0.79% (95 runs sampled)
31+
AJV Serialize array x 10,362 ops/sec ±1.37% (90 runs sampled)
32+
JSON.stringify large array x 198 ops/sec ±0.77% (84 runs sampled)
33+
fast-json-stringify large array default x 143 ops/sec ±1.40% (81 runs sampled)
34+
fast-json-stringify large array json-stringify x 199 ops/sec ±0.44% (85 runs sampled)
35+
compile-json-stringify large array x 522 ops/sec ±0.39% (94 runs sampled)
36+
AJV Serialize large array x 162 ops/sec ±0.97% (82 runs sampled)
37+
JSON.stringify long string x 12,593 ops/sec ±0.39% (96 runs sampled)
38+
fast-json-stringify long string x 12,505 ops/sec ±0.32% (94 runs sampled)
39+
compile-json-stringify long string x 12,557 ops/sec ±0.78% (94 runs sampled)
40+
AJV Serialize long string x 31,406 ops/sec ±0.58% (88 runs sampled)
41+
JSON.stringify short string x 14,173,359 ops/sec ±0.68% (98 runs sampled)
42+
fast-json-stringify short string x 52,433,410 ops/sec ±0.34% (94 runs sampled)
43+
compile-json-stringify short string x 50,096,908 ops/sec ±0.94% (98 runs sampled)
44+
AJV Serialize short string x 48,903,497 ops/sec ±3.37% (93 runs sampled)
45+
JSON.stringify obj x 2,655,636 ops/sec ±0.46% (94 runs sampled)
46+
fast-json-stringify obj x 11,119,848 ops/sec ±0.64% (95 runs sampled)
47+
compile-json-stringify obj x 26,579,854 ops/sec ±1.57% (93 runs sampled)
48+
AJV Serialize obj x 14,695,781 ops/sec ±0.71% (94 runs sampled)
49+
JSON stringify date x 642,000 ops/sec ±1.35% (94 runs sampled)
50+
fast-json-stringify date format x 914,400 ops/sec ±0.63% (94 runs sampled)
51+
compile-json-stringify date format x 651,345 ops/sec ±0.68% (93 runs sampled)
5252
```
5353

5454
#### Table of contents:

0 commit comments

Comments
 (0)