Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15
Safari 14
Mac OS X 10.15.6
Desktop
3 years ago
Test name Executions per second
lodash.each 635.4 Ops/sec
lodash.map 597.6 Ops/sec
Object.entries.map 492.8 Ops/sec
Object.entries + for 494.1 Ops/sec
Object.entries + for..of 475.8 Ops/sec
forEach 426.5 Ops/sec
for..in 328.6 Ops/sec
lodash.forOwn 627.9 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