Run details:
Mozilla/5.0 (Linux; Android 13; SM-G998U) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.175 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
one year ago
Test name Executions per second
for i++ 13563.0 Ops/sec
for i-- 2175266.8 Ops/sec
while i-- 1558398.5 Ops/sec
for of 1206265.9 Ops/sec
forEach 2190816.5 Ops/sec
Script Preparation code:
Tests:
  • for i++

  • for i--

  • while i--

  • for of

  • forEach