Skip to content

Commit 0b12eb5

Browse files
authored
Updated benchmarks in the README (#103)
1 parent a548e67 commit 0b12eb5

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,38 @@ __fast-json-stringify__ is significantly faster than `JSON.stringify()` for smal
66

77
Benchmarks:
88

9-
Node 6.11.2:
9+
Node 8.11.2:
1010

1111
```
12-
JSON.stringify array x 3,944 ops/sec ±1.13% (83 runs sampled)
13-
fast-json-stringify array x 3,638 ops/sec ±2.56% (83 runs sampled)
14-
fast-json-stringify-uglified array x 3,693 ops/sec ±1.75% (82 runs sampled)
15-
JSON.stringify long string x 15,007 ops/sec ±1.13% (90 runs sampled)
16-
fast-json-stringify long string x 14,480 ops/sec ±1.06% (87 runs sampled)
17-
fast-json-stringify-uglified long string x 14,065 ops/sec ±1.22% (87 runs sampled)
18-
JSON.stringify short string x 5,213,486 ops/sec ±1.35% (84 runs sampled)
19-
fast-json-stringify short string x 12,314,153 ops/sec ±1.54% (83 runs sampled)
20-
fast-json-stringify-uglified short string x 11,801,080 ops/sec ±6.65% (83 runs sampled)
21-
JSON.stringify obj x 1,131,672 ops/sec ±16.67% (61 runs sampled)
22-
fast-json-stringify obj x 3,500,095 ops/sec ±5.50% (80 runs sampled)
23-
fast-json-stringify-uglified obj x 4,091,347 ops/sec ±1.33% (89 runs sampled)
12+
JSON.stringify array x 3,602 ops/sec ±1.58% (92 runs sampled)
13+
fast-json-stringify array x 4,554 ops/sec ±1.42% (93 runs sampled)
14+
fast-json-stringify-uglified array x 4,505 ops/sec ±1.60% (92 runs sampled)
15+
JSON.stringify long string x 10,363 ops/sec ±2.00% (90 runs sampled)
16+
fast-json-stringify long string x 10,547 ops/sec ±1.63% (90 runs sampled)
17+
fast-json-stringify-uglified long string x 10,136 ops/sec ±2.27% (88 runs sampled)
18+
JSON.stringify short string x 4,392,858 ops/sec ±2.18% (87 runs sampled)
19+
fast-json-stringify short string x 9,363,875 ops/sec ±1.90% (90 runs sampled)
20+
fast-json-stringify-uglified short string x 9,541,809 ops/sec ±0.70% (95 runs sampled)
21+
JSON.stringify obj x 1,640,678 ops/sec ±1.94% (85 runs sampled)
22+
fast-json-stringify obj x 3,685,948 ops/sec ±0.98% (93 runs sampled)
23+
fast-json-stringify-uglified obj x 3,669,155 ops/sec ±1.19% (89 runs sampled)
2424
```
2525

26-
Node 8.3.0:
26+
Node 10.4.0:
2727

2828
```
29-
JSON.stringify array x 4,025 ops/sec ±0.99% (90 runs sampled)
30-
fast-json-stringify array x 6,463 ops/sec ±0.99% (90 runs sampled)
31-
fast-json-stringify-uglified array x 6,314 ops/sec ±1.15% (92 runs sampled)
32-
JSON.stringify long string x 14,648 ops/sec ±1.64% (88 runs sampled)
33-
fast-json-stringify long string x 14,822 ops/sec ±1.09% (88 runs sampled)
34-
fast-json-stringify-uglified long string x 14,963 ops/sec ±0.86% (89 runs sampled)
35-
JSON.stringify short string x 4,724,477 ops/sec ±1.03% (89 runs sampled)
36-
fast-json-stringify short string x 12,484,378 ops/sec ±0.92% (88 runs sampled)
37-
fast-json-stringify-uglified short string x 12,218,181 ops/sec ±1.24% (90 runs sampled)
38-
JSON.stringify obj x 1,898,648 ops/sec ±2.15% (85 runs sampled)
39-
fast-json-stringify obj x 5,714,557 ops/sec ±1.45% (90 runs sampled)
40-
fast-json-stringify-uglified obj x 5,902,021 ops/sec ±1.06% (91 runs sampled)
29+
JSON.stringify array x 3,269 ops/sec ±1.48% (86 runs sampled)
30+
fast-json-stringify array x 5,945 ops/sec ±1.51% (87 runs sampled)
31+
fast-json-stringify-uglified array x 5,720 ops/sec ±1.18% (89 runs sampled)
32+
JSON.stringify long string x 9,325 ops/sec ±1.22% (88 runs sampled)
33+
fast-json-stringify long string x 9,678 ops/sec ±0.99% (92 runs sampled)
34+
fast-json-stringify-uglified long string x 9,578 ops/sec ±1.12% (92 runs sampled)
35+
JSON.stringify short string x 3,307,218 ops/sec ±1.54% (92 runs sampled)
36+
fast-json-stringify short string x 28,213,341 ops/sec ±1.72% (83 runs sampled)
37+
fast-json-stringify-uglified short string x 29,130,846 ops/sec ±1.34% (87 runs sampled)
38+
JSON.stringify obj x 1,441,648 ops/sec ±2.14% (87 runs sampled)
39+
fast-json-stringify obj x 5,345,003 ops/sec ±1.02% (91 runs sampled)
40+
fast-json-stringify-uglified obj x 5,331,581 ops/sec ±0.73% (91 runs sampled)
4141
```
4242

4343
#### Table of contents:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"uglify-es": "^3.3.9"
3636
},
3737
"dependencies": {
38-
"ajv": "^6.5.0",
39-
"deepmerge": "^2.1.0"
38+
"ajv": "^6.5.1",
39+
"deepmerge": "^2.1.1"
4040
}
4141
}

0 commit comments

Comments
 (0)