Run details:
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Chrome OS 14541.0.0
Desktop
15 days ago
Test name Executions per second
For 2227308.5 Ops/sec
Foreach 3959260.0 Ops/sec
Do While 3449365.2 Ops/sec
While 3432323.2 Ops/sec
Script Preparation code:
Tests:
  • For

  • Foreach

  • Do While

  • While