Script Preparation code:
Tests:
  • Array.flat()

  • Reduce

  • forEach

  • for

  • Nested for

  • Destructuring + reduce

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.flat()
    Reduce
    forEach
    for
    Nested for
    Destructuring + reduce

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
Chrome 74 on Linux
View result in a separate tab
Test name Executions per second
Array.flat() 796.1 Ops/sec
Reduce 38321.8 Ops/sec
forEach 16011.0 Ops/sec
for 15994.6 Ops/sec
Nested for 919.7 Ops/sec
Destructuring + reduce 3602.1 Ops/sec


;