Script Preparation code:
Tests:
  • Array forEach, callback function provided as an argument, ignoring most callback arguments

  • Array forEach, callback function provided as an argument

  • Array forEach, callback function provided as a predefined variable

  • for..of

  • for..in

  • for loop

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array forEach, callback function provided as an argument, ignoring most callback arguments
    Array forEach, callback function provided as an argument
    Array forEach, callback function provided as a predefined variable
    for..of
    for..in
    for loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 23 days ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Linux
View result in a separate tab
Test name Executions per second
Array forEach, callback function provided as an argument, ignoring most callback arguments 5601961.0 Ops/sec
Array forEach, callback function provided as an argument 5600143.0 Ops/sec
Array forEach, callback function provided as a predefined variable 3423975.0 Ops/sec
for..of 733334.7 Ops/sec
for..in 4747800.0 Ops/sec
for loop 3430163.0 Ops/sec