Permalink
Browse files

Updated benchmarks in the README (#103)

  • Loading branch information...
mcollina committed Jun 12, 2018
1 parent a548e67 commit 0b12eb5812ac8cf7239e1924f4c35dee6e705c82
Showing with 28 additions and 28 deletions.
  1. +26 −26 README.md
  2. +2 −2 package.json
View
@@ -6,38 +6,38 @@ __fast-json-stringify__ is significantly faster than `JSON.stringify()` for smal
Benchmarks:
Node 6.11.2:
Node 8.11.2:
```
JSON.stringify array x 3,944 ops/sec ±1.13% (83 runs sampled)
fast-json-stringify array x 3,638 ops/sec ±2.56% (83 runs sampled)
fast-json-stringify-uglified array x 3,693 ops/sec ±1.75% (82 runs sampled)
JSON.stringify long string x 15,007 ops/sec ±1.13% (90 runs sampled)
fast-json-stringify long string x 14,480 ops/sec ±1.06% (87 runs sampled)
fast-json-stringify-uglified long string x 14,065 ops/sec ±1.22% (87 runs sampled)
JSON.stringify short string x 5,213,486 ops/sec ±1.35% (84 runs sampled)
fast-json-stringify short string x 12,314,153 ops/sec ±1.54% (83 runs sampled)
fast-json-stringify-uglified short string x 11,801,080 ops/sec ±6.65% (83 runs sampled)
JSON.stringify obj x 1,131,672 ops/sec ±16.67% (61 runs sampled)
fast-json-stringify obj x 3,500,095 ops/sec ±5.50% (80 runs sampled)
fast-json-stringify-uglified obj x 4,091,347 ops/sec ±1.33% (89 runs sampled)
JSON.stringify array x 3,602 ops/sec ±1.58% (92 runs sampled)
fast-json-stringify array x 4,554 ops/sec ±1.42% (93 runs sampled)
fast-json-stringify-uglified array x 4,505 ops/sec ±1.60% (92 runs sampled)
JSON.stringify long string x 10,363 ops/sec ±2.00% (90 runs sampled)
fast-json-stringify long string x 10,547 ops/sec ±1.63% (90 runs sampled)
fast-json-stringify-uglified long string x 10,136 ops/sec ±2.27% (88 runs sampled)
JSON.stringify short string x 4,392,858 ops/sec ±2.18% (87 runs sampled)
fast-json-stringify short string x 9,363,875 ops/sec ±1.90% (90 runs sampled)
fast-json-stringify-uglified short string x 9,541,809 ops/sec ±0.70% (95 runs sampled)
JSON.stringify obj x 1,640,678 ops/sec ±1.94% (85 runs sampled)
fast-json-stringify obj x 3,685,948 ops/sec ±0.98% (93 runs sampled)
fast-json-stringify-uglified obj x 3,669,155 ops/sec ±1.19% (89 runs sampled)
```
Node 8.3.0:
Node 10.4.0:
```
JSON.stringify array x 4,025 ops/sec ±0.99% (90 runs sampled)
fast-json-stringify array x 6,463 ops/sec ±0.99% (90 runs sampled)
fast-json-stringify-uglified array x 6,314 ops/sec ±1.15% (92 runs sampled)
JSON.stringify long string x 14,648 ops/sec ±1.64% (88 runs sampled)
fast-json-stringify long string x 14,822 ops/sec ±1.09% (88 runs sampled)
fast-json-stringify-uglified long string x 14,963 ops/sec ±0.86% (89 runs sampled)
JSON.stringify short string x 4,724,477 ops/sec ±1.03% (89 runs sampled)
fast-json-stringify short string x 12,484,378 ops/sec ±0.92% (88 runs sampled)
fast-json-stringify-uglified short string x 12,218,181 ops/sec ±1.24% (90 runs sampled)
JSON.stringify obj x 1,898,648 ops/sec ±2.15% (85 runs sampled)
fast-json-stringify obj x 5,714,557 ops/sec ±1.45% (90 runs sampled)
fast-json-stringify-uglified obj x 5,902,021 ops/sec ±1.06% (91 runs sampled)
JSON.stringify array x 3,269 ops/sec ±1.48% (86 runs sampled)
fast-json-stringify array x 5,945 ops/sec ±1.51% (87 runs sampled)
fast-json-stringify-uglified array x 5,720 ops/sec ±1.18% (89 runs sampled)
JSON.stringify long string x 9,325 ops/sec ±1.22% (88 runs sampled)
fast-json-stringify long string x 9,678 ops/sec ±0.99% (92 runs sampled)
fast-json-stringify-uglified long string x 9,578 ops/sec ±1.12% (92 runs sampled)
JSON.stringify short string x 3,307,218 ops/sec ±1.54% (92 runs sampled)
fast-json-stringify short string x 28,213,341 ops/sec ±1.72% (83 runs sampled)
fast-json-stringify-uglified short string x 29,130,846 ops/sec ±1.34% (87 runs sampled)
JSON.stringify obj x 1,441,648 ops/sec ±2.14% (87 runs sampled)
fast-json-stringify obj x 5,345,003 ops/sec ±1.02% (91 runs sampled)
fast-json-stringify-uglified obj x 5,331,581 ops/sec ±0.73% (91 runs sampled)
```
#### Table of contents:
View
@@ -35,7 +35,7 @@
"uglify-es": "^3.3.9"
},
"dependencies": {
"ajv": "^6.5.0",
"deepmerge": "^2.1.0"
"ajv": "^6.5.1",
"deepmerge": "^2.1.1"
}
}

0 comments on commit 0b12eb5

Please sign in to comment.