Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0
Firefox 67
Windows
Desktop
5 years ago
Test name Executions per second
foreach 272835.9 Ops/sec
for++ 137575.6 Ops/sec
map 56705.5 Ops/sec
for of 105131.1 Ops/sec
for in 4035.3 Ops/sec
Script Preparation code:
Tests:
  • foreach

  • for++

  • map

  • for of

  • for in


;