Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:49.0) Gecko/20100101 Firefox/49.0
Firefox 49
Mac OS X 10.11
Other
8 years ago
Test name Executions per second
Loop 1681069.4 Ops/sec
Loop (extract length) 4793606.0 Ops/sec
ForEach 5109984.0 Ops/sec
Script Preparation code:
Tests:
  • Loop

  • Loop (extract length)

  • ForEach