Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4206.0 Safari/537.36
Chrome 86
Mac OS X 10.15.6
Desktop
4 years ago
Test name Executions per second
lodash.each 875.8 Ops/sec
lodash.map 849.2 Ops/sec
Object.entries.map 352.1 Ops/sec
Object.entries + for 381.5 Ops/sec
Object.entries + for..of 377.2 Ops/sec
forEach 555.4 Ops/sec
for..in 380.9 Ops/sec
lodash.forOwn 876.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash.each

  • lodash.map

  • Object.entries.map

  • Object.entries + for

  • Object.entries + for..of

  • forEach

  • for..in

  • lodash.forOwn


;