Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Chrome OS 14541.0.0
Desktop
one year ago
Test name Executions per second
for 27802.6 Ops/sec
foreach 1521060.2 Ops/sec
for in 1211106.1 Ops/sec
for..of 46335.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of