Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for (dynamic length)
    foreach
    some
    for..of
    for (static length)
    backward for

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36 Edg/145.0.0.0
Chrome 145 on Windows
View result in a separate tab
some
7.5M/s
foreach
7.3M/s
backward for
6.2M/s
for (static length)
5.5M/s
for (dynamic length)
4.1M/s
for..of
895K/s
View exact numbers
Test name Executions per second
some 7,500,228 Ops/sec
foreach 7,270,996 Ops/sec
backward for 6,185,748 Ops/sec
for (static length) 5,537,069 Ops/sec
for (dynamic length) 4,099,466 Ops/sec
for..of 895,189 Ops/sec