Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0
Firefox 66
Windows 7
Desktop
5 years ago
Test name Executions per second
for 780664.1 Ops/sec
foreach 6222583.5 Ops/sec
some 7271991.0 Ops/sec
for..of 68346.1 Ops/sec
Lodash _.forEach() 1013523.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of

  • Lodash _.forEach()


;