Run details:
Mozilla/5.0 (Linux; Android 10; moto g(7) plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
for of 20640.4 Ops/sec
forEach 2646.2 Ops/sec
reduce 2289.5 Ops/sec
for i 153.4 Ops/sec
Script Preparation code:
Tests:
  • for of

  • forEach

  • reduce

  • for i