Object hash vs JSON.stringifyFastest: JSON.stringify (309.3x faster)
3,832,229 ops/sec
12,389 ops/sec
Fastest: JSON.stringify (276.0x faster)
1,036,403 ops/sec
3,756 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Object hash | |
| JSON.stringify |
| Test name | Executions per second |
|---|---|
| ✓ JSON.stringify | 1,278,262 Ops/sec |
| Object hash | 5,958 Ops/sec |