Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Windows
Desktop
7 months ago
Test name Executions per second
for of 788.7 Ops/sec
forEach 834.0 Ops/sec
forEach, separate callback 693.9 Ops/sec
for 296.6 Ops/sec
for, external len 421.9 Ops/sec
Script Preparation code:
Tests:
  • for of

  • forEach

  • forEach, separate callback

  • for

  • for, external len


;