Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Safari/605.1.15 Midori/6
Safari 15
Linux
Desktop
2 years ago
Test name Executions per second
for loop (without join) 354913.2 Ops/sec
for loop (with join) 233822.3 Ops/sec
for-in loop 285061.1 Ops/sec
for-of loop 255368.5 Ops/sec
map 276160.8 Ops/sec
reduce 414463.3 Ops/sec
Script Preparation code:
Tests:
  • for loop (without join)

  • for loop (with join)

  • for-in loop

  • for-of loop

  • map

  • reduce