Script Preparation code:
Tests:
  • for(const item of array)

  • for(const [k, v] of Object.entries(object))

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: 15 days 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
Test name Executions per second
for(const item of array) 15308425.0 Ops/sec
for(const [k, v] of Object.entries(object)) 3188438.0 Ops/sec