Script Preparation code:
Tests:
  • for loop

  • Array.prototype.reduce.call

  • String.prototype.reduce

  • Array.prototype.forEach

  • .split.reduce

  • .split.forEach

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for loop
    Array.prototype.reduce.call
    String.prototype.reduce
    Array.prototype.forEach
    .split.reduce
    .split.forEach

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Chrome 146 on Windows
View result in a separate tab
Test name Executions per second
for loop 12871441.0 Ops/sec
Array.prototype.reduce.call 1632480.1 Ops/sec
String.prototype.reduce 1700551.9 Ops/sec
Array.prototype.forEach 1660419.2 Ops/sec
.split.reduce 9470044.0 Ops/sec
.split.forEach 8388160.5 Ops/sec