Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    .forEach
    for..of
    for..of (destructuring)
    .map
    .map (destructuring)
    .for (init array)
    .reduce
    .reduce (destructuring)
    for..of (reduce)
    for..of (reduce) (destructuring)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Safari/605.1.15
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
.for (init array)
68K/s
for..of
65K/s
.forEach
65K/s
.reduce (destructuring)
64K/s
for..of (reduce) (destructuring)
62K/s
.map (destructuring)
61K/s
.map
61K/s
for..of (destructuring)
55K/s
.reduce
51K/s
for..of (reduce)
50K/s
View exact numbers
Test name Executions per second
.for (init array) 68,389 Ops/sec
for..of 65,482 Ops/sec
.forEach 65,347 Ops/sec
.reduce (destructuring) 63,508 Ops/sec
for..of (reduce) (destructuring) 62,167 Ops/sec
.map (destructuring) 61,423 Ops/sec
.map 60,613 Ops/sec
for..of (destructuring) 54,539 Ops/sec
.reduce 50,772 Ops/sec
for..of (reduce) 49,909 Ops/sec