Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
Chrome 81
Mac OS X 10.14.6
Desktop
4 years ago
Test name Executions per second
lodash.each 702.9 Ops/sec
lodash.map 630.9 Ops/sec
Object.entries.map 263.5 Ops/sec
Object.entries + for 275.6 Ops/sec
Object.entries + for..of 274.6 Ops/sec
forEach 425.9 Ops/sec
for..in 285.8 Ops/sec
lodash.forOwn 718.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


;