Run details:
Mozilla/5.0 (Linux; Android 12; 2201117TG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36
Chrome Mobile 111
Android
Mobile
one year ago
Test name Executions per second
for i++ 4736.2 Ops/sec
for i-- 638274.8 Ops/sec
while i-- 491936.4 Ops/sec
for of 434959.6 Ops/sec
forEach 426306.0 Ops/sec
Script Preparation code:
Tests:
  • for i++

  • for i--

  • while i--

  • for of

  • forEach