Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
Chrome 84
Mac OS X 10.15.6
Desktop
4 years ago
Test name Executions per second
Native for() 107211112.0 Ops/sec
Native for..in 1931526.0 Ops/sec
Native forEach() 43976452.0 Ops/sec
Lodash _.forEach() 3208706.8 Ops/sec
Lodash _.forEachRight() 2950220.5 Ops/sec
HTML Preparation code:
Tests:
  • Native for()

  • Native for..in

  • Native forEach()

  • Lodash _.forEach()

  • Lodash _.forEachRight()


;