Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Linux
Desktop
one year ago
JSON.parse(JSON.stringify())
499K/s
View exact numbers
| Test name |
Executions per second |
|
✓
Object.assign()
|
12,925,767 Ops/sec |
|
spread syntax
|
3,543,070 Ops/sec |
|
JSON.parse(JSON.stringify())
|
498,933 Ops/sec |
|
structuredClone()
|
327,869 Ops/sec |
Tests:
-
structuredClone()
-
spread syntax
-
Object.assign()
-
JSON.parse(JSON.stringify())