Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36
Chrome 75
Windows
Desktop
5 years ago
Test name Executions per second
Simple for 3425.3 Ops/sec
While 3380.1 Ops/sec
While + 1 3494.2 Ops/sec
For +1 3383.6 Ops/sec
Reverse for 4596.5 Ops/sec
Cached for 4676.5 Ops/sec
Script Preparation code:
Tests:
  • Simple for

  • While

  • While + 1

  • For +1

  • Reverse for

  • Cached for


;