Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for(const item of array)
    for(const [k, v] of Object.entries(object))

    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; rv:138.0) Gecko/20100101 Firefox/138.0
Firefox 138 on Windows
View result in a separate tab
for(const item of array)
15.3M/s
for(const [k, v] of Object.entries(object))
3.2M/s
View exact numbers
Test name Executions per second
for(const item of array) 15,308,425 Ops/sec
for(const [k, v] of Object.entries(object)) 3,188,438 Ops/sec