Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Chrome 60
Windows
Other
7 years ago
Test name Executions per second
normal loop 1.7 Ops/sec
loop without length 2.2 Ops/sec
reverse loop 2.2 Ops/sec
weird trick 2.1 Ops/sec
Script Preparation code:
Tests:
  • normal loop

  • loop without length

  • reverse loop

  • weird trick


;