Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    With Object.assign()
    With Iteration and Assignment
    With Iteration and .keys().forEach
    With for iteration

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122 on Mac OS X 10.15.7
View result in a separate tab
With Iteration and Assignment
4.1M/s
With Iteration and .keys().forEach
3.5M/s
With for iteration
2.9M/s
With Object.assign()
2.3M/s
View exact numbers
Test name Executions per second
With Iteration and Assignment 4,123,526 Ops/sec
With Iteration and .keys().forEach 3,499,085 Ops/sec
With for iteration 2,909,476 Ops/sec
With Object.assign() 2,340,598 Ops/sec