Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
Chrome 54
Mac OS X 10.11.6
Other
8 years ago
Test name Executions per second
For loop, decrementing 149.4 Ops/sec
For loop, incrementing 116.8 Ops/sec
forEach 382.5 Ops/sec
For loop, incrementing, cache length 129.8 Ops/sec
Different for 160.8 Ops/sec
Script Preparation code:
Tests:
  • For loop, decrementing

  • For loop, incrementing

  • forEach

  • For loop, incrementing, cache length

  • Different for


;