Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
Chrome 54
Windows 8.1
Other
7 years ago
Test name Executions per second
fori 487099.6 Ops/sec
forin 732501.1 Ops/sec
foreach 673884.9 Ops/sec
backwhile 977289.3 Ops/sec
forcachelen 567042.9 Ops/sec
4of 706353.4 Ops/sec
backfor 514949.0 Ops/sec
Script Preparation code:
Tests:
  • fori

  • forin

  • foreach

  • backwhile

  • forcachelen

  • 4of

  • backfor


;