|
1 | 1 | # fast-json-stringify [](https://travis-ci.org/mcollina/fast-json-stringify)
|
2 | 2 |
|
3 |
| -__fast-json-stringify__ is x1-5 times faster than `JSON.stringify()`. |
| 3 | +__fast-json-stringify__ is x1-4 times faster than `JSON.stringify()`. |
4 | 4 | It is particularly suited if you are sending small JSON payloads, the
|
5 | 5 | advantages reduces on large payloads.
|
6 | 6 |
|
7 | 7 | Benchmarks:
|
8 | 8 |
|
9 | 9 | ```
|
10 |
| -JSON.stringify array x 3,500 ops/sec ±0.91% (85 runs sampled) |
11 |
| -fast-json-stringify array x 4,456 ops/sec ±1.68% (87 runs sampled) |
12 |
| -JSON.stringify long string x 13,395 ops/sec ±0.88% (91 runs sampled) |
13 |
| -fast-json-stringify long string x 95,488 ops/sec ±1.04% (90 runs sampled) |
14 |
| -JSON.stringify short string x 5,059,316 ops/sec ±0.86% (92 runs sampled) |
15 |
| -fast-json-stringify short string x 12,219,967 ops/sec ±1.16% (91 runs sampled) |
16 |
| -JSON.stringify obj x 1,763,980 ops/sec ±1.30% (88 runs sampled) |
17 |
| -fast-json-stringify obj x 5,085,148 ops/sec ±1.56% (89 runs sampled) |
| 10 | +JSON.stringify array x 3,679 ops/sec ±1.01% (85 runs sampled) |
| 11 | +fast-json-stringify array x 4,618 ops/sec ±1.64% (87 runs sampled) |
| 12 | +JSON.stringify long string x 13,303 ops/sec ±1.01% (89 runs sampled) |
| 13 | +fast-json-stringify long string x 13,489 ops/sec ±0.88% (90 runs sampled) |
| 14 | +JSON.stringify short string x 4,974,749 ops/sec ±1.14% (86 runs sampled) |
| 15 | +fast-json-stringify short string x 11,030,700 ops/sec ±0.82% (89 runs sampled) |
| 16 | +JSON.stringify obj x 1,774,593 ops/sec ±1.07% (90 runs sampled) |
| 17 | +fast-json-stringify obj x 4,976,369 ops/sec ±1.00% (89 runs sampled) |
18 | 18 | ```
|
19 | 19 |
|
20 | 20 | #### Table of contents:
|
|
0 commit comments