Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Chrome OS 14541.0.0
Desktop
2 months ago
Test name Executions per second
for 31887.6 Ops/sec
foreach 56736.6 Ops/sec
for..of 56657.8 Ops/sec
for..of over entries 55879.1 Ops/sec
for..in 30282.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries

  • for..in