Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Linux
Desktop
one year ago
Test name Executions per second
while 7.3 Ops/sec
for 7.3 Ops/sec
forEach 5.0 Ops/sec
for of 1.0 Ops/sec
Script Preparation code:
Tests:
  • while

  • for

  • forEach

  • for of


;