Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Object.Assign()
    For-In Loop
    Object.Entries() with For-Each Loop
    Object.Keys() with For-Each Loop
    Spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Object.Keys() with For-Each Loop
8K/s
For-In Loop
6K/s
Object.Entries() with For-Each Loop
3K/s
Object.Assign()
1K/s
Spread
1K/s
View exact numbers
Test name Executions per second
Object.Keys() with For-Each Loop 7,718 Ops/sec
For-In Loop 5,936 Ops/sec
Object.Entries() with For-Each Loop 3,291 Ops/sec
Object.Assign() 1,185 Ops/sec
Spread 1,108 Ops/sec