Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0
Chrome 134
Linux
Desktop
one year ago
JSON.parse(JSON.stringify())
486K/s
View exact numbers
| Test name |
Executions per second |
|
✓
spread syntax
|
29,666,498 Ops/sec |
|
Object.assign()
|
3,646,825 Ops/sec |
|
JSON.parse(JSON.stringify())
|
486,296 Ops/sec |
|
structuredClone()
|
240,585 Ops/sec |
Tests:
-
structuredClone()
-
spread syntax
-
Object.assign()
-
JSON.parse(JSON.stringify())