Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
Chrome 54
Windows
Other
8 years ago
Test name Executions per second
For loop, decrementing 145.6 Ops/sec
For loop, incrementing 114.0 Ops/sec
forEach 365.1 Ops/sec
For loop, incrementing, cache length 124.1 Ops/sec
Different for 160.3 Ops/sec
Script Preparation code:
Tests:
  • For loop, decrementing

  • For loop, incrementing

  • forEach

  • For loop, incrementing, cache length

  • Different for