Script Preparation code:
Tests:
  • for..of (destructuring)

  • .map

  • .map (destructuring)

  • .for (init array)

  • .reduce

  • .reduce (destructuring)

  • for..of (reduce)

  • for..of (reduce) (destructuring)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
for..of (destructuring) 54.3 Ops/sec
.map 48.5 Ops/sec
.map (destructuring) 51.9 Ops/sec
.for (init array) 101.7 Ops/sec
.reduce 77.7 Ops/sec
.reduce (destructuring) 71.7 Ops/sec
for..of (reduce) 76.6 Ops/sec
for..of (reduce) (destructuring) 71.9 Ops/sec