Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
lodash.each 1192.8 Ops/sec
lodash.map 1093.0 Ops/sec
Object.entries.map 596.0 Ops/sec
vanilla for-loop w/ Object.entries 626.4 Ops/sec
lodash.forEach 1186.8 Ops/sec
Object.values for 690.2 Ops/sec
Object.keys for 1277.1 Ops/sec
Object.keys for in 1112.8 Ops/sec
Object.values for of 688.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash.each

  • lodash.map

  • Object.entries.map

  • vanilla for-loop w/ Object.entries

  • lodash.forEach

  • Object.values for

  • Object.keys for

  • Object.keys for in

  • Object.values for of

  • Object.keys for of


;