Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Linux
Desktop
3 months ago
Test name Executions per second
for 17463062.0 Ops/sec
foreach 10781146.0 Ops/sec
for in 75419352.0 Ops/sec
for..of 1355444.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for in

  • for..of


;