Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Linux
Desktop
2 years ago
Test name Executions per second
For 20088548.0 Ops/sec
Foreach 12443207.0 Ops/sec
Do While 18637940.0 Ops/sec
While 18255034.0 Ops/sec
Script Preparation code:
Tests:
  • For

  • Foreach

  • Do While

  • While