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.0 Ops/sec
For Loop 321.1 Ops/sec
foreach 306.8 Ops/sec
pre-allocated for loop 320.2 Ops/sec
pre-allocated unrolled for loop 324.9 Ops/sec
For of 159.0 Ops/sec
For of entries 68.0 Ops/sec
Script Preparation code:
Tests:
  • Map

  • For Loop

  • foreach

  • pre-allocated for loop

  • pre-allocated unrolled for loop

  • For of

  • For of entries