Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/64.0.3282.140 Chrome/64.0.3282.140 Safari/537.36
Chromium 64
Ubuntu
Other
2025 years ago
Test name Executions per second
Array.reduce 92053.2 Ops/sec
for loop 804298.0 Ops/sec
Array.forEach 634867.7 Ops/sec
for of loop 594386.2 Ops/sec
Script Preparation code:
Tests:
  • Array.reduce

  • for loop

  • Array.forEach

  • for of loop


;