Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Mac OS X 10.15.7
Desktop
3 months ago
Test name Executions per second
for i++ 30263.5 Ops/sec
for i-- 30372.8 Ops/sec
while i-- 29740.0 Ops/sec
for of 2729405.5 Ops/sec
forEach 2744189.2 Ops/sec
Script Preparation code:
Tests:
  • for i++

  • for i--

  • while i--

  • for of

  • forEach


;