Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Mac OS X 10.14.5
Desktop
one year ago
Test name Executions per second
for i 46.3 Ops/sec
for..of 120.4 Ops/sec
foreach 98.4 Ops/sec
Script Preparation code:
Tests:
  • for i

  • for..of

  • foreach