Sum vs Object-hash vs JSON.stringifyFastest: JSON.stringify (184.9x faster)
1,601,196 ops/sec
114,449 ops/sec
8,661 ops/sec
Fastest: JSON.stringify (258.2x faster)
1,367,862 ops/sec
55,988 ops/sec
5,297 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Sum | |
| Object-hash | |
| JSON.stringify |
| Test name | Executions per second |
|---|---|
| ✓ JSON.stringify | 1,082,386 Ops/sec |
| Sum | 81,473 Ops/sec |
| Object-hash | 3,726 Ops/sec |