Run details:
Mozilla/5.0 (Linux; Android 6.0; LG-H811 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.137 Mobile Safari/537.36
Chrome Mobile 64
Android 6.0
LG H811
2025 years ago
Test name Executions per second
Array.reduce 18579.5 Ops/sec
for loop 200399.8 Ops/sec
Array.forEach 50531.3 Ops/sec
for of loop 115844.1 Ops/sec
Script Preparation code:
Tests:
  • Array.reduce

  • for loop

  • Array.forEach

  • for of loop


;