JSON.parse() vs eval()Fastest: JSON.parse() (1.7x faster)
2,817,690 ops/sec
1,610,656 ops/sec
Fastest: JSON.parse() (2.1x faster)
5,989,886 ops/sec
2,794,544 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| JSON.parse() | |
| eval() |
| Test name | Executions per second |
|---|---|
| ✓ JSON.parse() | 2,734,574 Ops/sec |
| eval() | 92,394 Ops/sec |