Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
one year ago
spread syntax
21.9M/s
Cursed Proxy
17.8M/s
Object.assign
4.6M/s
JSON
1.2M/s
Object.fromEntries
1.2M/s
structuredClone()
522K/s
View exact numbers
Test name Executions per second
spread syntax 21,898,740 Ops/sec
Cursed Proxy 17,797,682 Ops/sec
Object.assign 4,553,856 Ops/sec
JSON 1,230,416 Ops/sec
Object.fromEntries 1,195,210 Ops/sec
structuredClone() 521,677 Ops/sec
Script Preparation code:
Tests: