Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.113 Safari/537.36 Vivaldi/2.1.1337.51
Chrome 70
Windows
Desktop
5 years ago
Test name Executions per second
for 54830.5 Ops/sec
foreach 3823544.0 Ops/sec
some 3764525.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some