Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135
Windows
Desktop
one year ago
Object.assign two objects with no empty object first
55K/s
Spread two objects
20K/s
Object.assign two objects
16K/s
View exact numbers
Test name Executions per second
Object.assign two objects with no empty object first 54,682 Ops/sec
Spread two objects 19,808 Ops/sec
Object.assign two objects 15,846 Ops/sec
Script Preparation code:
Tests: