Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Windows
Desktop
one year ago
Test name Executions per second
for i 5628.8 Ops/sec
for i no count length 5096.6 Ops/sec
for i no count length ++i 4791.9 Ops/sec
for of 1696.3 Ops/sec
forEach => 2089.3 Ops/sec
forEach no => 1924.6 Ops/sec
Script Preparation code:
Tests:
  • for i

  • for i no count length

  • for i no count length ++i

  • for of

  • forEach =>

  • forEach no =>