Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/110.0.5481.114 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 110
iOS 16.1
Mobile
one year ago
Test name Executions per second
for 161174.4 Ops/sec
foreach 426306.0 Ops/sec
some 418724.8 Ops/sec
every 7704585.5 Ops/sec
for..of 101323.2 Ops/sec
map 379039.2 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • every

  • for..of

  • map