Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 8_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12D508 Safari/600.1.4
Mobile Safari 8
iOS 8.2
Mobile
4 years ago
Test name Executions per second
for 16404.5 Ops/sec
foreach 26253.7 Ops/sec
some 42949.7 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some