Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Windows
Desktop
one year ago
Test name Executions per second
for i 69.5 Ops/sec
for i no count length 98.4 Ops/sec
for i no count length ++i 92.5 Ops/sec
for of 150.8 Ops/sec
forEach => 142.3 Ops/sec
forEach no => 141.7 Ops/sec
Script Preparation code:
Tests:
  • for i

  • for i no count length

  • for i no count length ++i

  • for of

  • forEach =>

  • forEach no =>