Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Map 170.7 Ops/sec
For Loop 319.2 Ops/sec
foreach 306.4 Ops/sec
pre-allocated for loop 318.9 Ops/sec
pre-allocated unrolled for loop 326.8 Ops/sec
Script Preparation code:
Tests:
  • Map

  • For Loop

  • foreach

  • pre-allocated for loop

  • pre-allocated unrolled for loop