Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 OPR/82.0.4227.58
Opera 82
Linux
Desktop
2 years ago
Test name Executions per second
for loop (without join) 216456.6 Ops/sec
for loop (with join) 169314.2 Ops/sec
for-in loop 195213.8 Ops/sec
for-of loop 176145.2 Ops/sec
map 242410.5 Ops/sec
reduce 238536.1 Ops/sec
Script Preparation code:
Tests:
  • for loop (without join)

  • for loop (with join)

  • for-in loop

  • for-of loop

  • map

  • reduce