Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const stringifyPackages = {
'faster-stable-stringify': true,
'json-stringify-deterministic': true,
'fast-safe-stringify': 'stable',
'object-identity': 'identify',
'safe-stable-stringify': require('.')
}

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"json-stable-stringify": "^1.3.0",
"json-stringify-deterministic": "^1.0.12",
"json-stringify-safe": "^5.0.1",
"object-identity": "^0.2.2",
"bench-node": "^0.14.0",
"standard": "^17.1.2",
"tap": "^16.3.10",
Expand Down
16 changes: 9 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,15 @@ indentation: deep circular x 16,443 ops/sec ±0.40% (97 runs sampled)
Comparing `safe-stable-stringify` with known alternatives:

```md
fast-json-stable-stringify x 18,765 ops/sec ±0.71% (94 runs sampled)
json-stable-stringify x 13,870 ops/sec ±0.72% (94 runs sampled)
fast-stable-stringify x 21,343 ops/sec ±0.33% (95 runs sampled)
faster-stable-stringify x 17,707 ops/sec ±0.44% (97 runs sampled)
json-stringify-deterministic x 11,208 ops/sec ±0.57% (98 runs sampled)
fast-safe-stringify x 21,460 ops/sec ±0.75% (99 runs sampled)
this x 30,367 ops/sec ±0.39% (96 runs sampled)
fastest-stable-stringify x 53,720 ops/sec (11 runs sampled)
fast-json-stable-stringify x 48,530 ops/sec (11 runs sampled)
json-stable-stringify x 38,123 ops/sec (11 runs sampled)
fast-stable-stringify x 54,064 ops/sec (12 runs sampled)
faster-stable-stringify x 47,958 ops/sec (10 runs sampled)
json-stringify-deterministic x 35,306 ops/sec (10 runs sampled)
fast-safe-stringify x 44,133 ops/sec (10 runs sampled)
object-identity x 103,553 ops/sec (13 runs sampled)
this x 48,175 ops/sec (11 runs sampled)

The fastest is this
```
Expand Down