Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36
Chrome 72
Linux
Desktop
5 years ago
Test name Executions per second
for 76333.6 Ops/sec
foreach 3893177.2 Ops/sec
some 4092999.2 Ops/sec
for..of 131607.3 Ops/sec
Lodash _.forEach() 108906.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of

  • Lodash _.forEach()


;