Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 6_0_1 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A525 Safari/8536.25
Mobile Safari 6
iOS 6.0.1
Mobile
4 years ago
Test name Executions per second
for 13351.3 Ops/sec
foreach 29830.1 Ops/sec
some 31753.4 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some