Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Mac OS X 10.15
Desktop
one month ago
Test name Executions per second
for of: few items 20548202.0 Ops/sec
for of: many items 145508.8 Ops/sec
forEach: few items 24452686.0 Ops/sec
forEach: many items 236373.6 Ops/sec
Script Preparation code:
Tests:
  • for of: few items

  • for of: many items

  • forEach: few items

  • forEach: many items