Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14
Safari 10
Mac OS X 10.12.1
Other
7 years ago
Test name Executions per second
for 43795.7 Ops/sec
foreach 194596.2 Ops/sec
some 197388.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some