Run details:
Mozilla/5.0 (Linux; Android 13; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36
Chrome Mobile 111
Android
Mobile
one year ago
Test name Executions per second
for 77723.6 Ops/sec
foreach 3454367.5 Ops/sec
some 3537052.2 Ops/sec
every 3441872.8 Ops/sec
for..of 103949.1 Ops/sec
map 2822280.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map