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
22.0M/s
Cursed Proxy
17.9M/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,951,246 Ops/sec
Cursed Proxy 17,902,422 Ops/sec
Object.assign 4,579,542 Ops/sec
JSON 1,243,008 Ops/sec
Object.fromEntries 1,183,762 Ops/sec
structuredClone() 522,041 Ops/sec
Script Preparation code:
Tests: