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++ 4751.0 Ops/sec
for i-- 632546.2 Ops/sec
while i-- 219098.5 Ops/sec
for of 385711.8 Ops/sec
forEach 418520.1 Ops/sec
Script Preparation code:
Tests:
  • for i++

  • for i--

  • while i--

  • for of

  • forEach