Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Mac OS X 10.15.7
Desktop
11 months ago
Test name Executions per second
lodash.each 8306.4 Ops/sec
lodash.map 8160.8 Ops/sec
Object.entries.map 4250.3 Ops/sec
vanilla for-loop w/ Object.entries 4508.5 Ops/sec
lodash.forEach 8357.2 Ops/sec
Object.values 56198.0 Ops/sec
Object.keys 6797.5 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

  • Object.keys