Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36
Chrome 100
Windows
Desktop
2 years ago
Test name Executions per second
lodash.each 3677.3 Ops/sec
lodash.map 3646.8 Ops/sec
Object.entries.map 1588.2 Ops/sec
vanilla for-loop w/ Object.entries 1991.9 Ops/sec
lodash.forEach 3833.1 Ops/sec
Object.values 52195.9 Ops/sec
Object.keys 3444.2 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