Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
lodash.each 6323.6 Ops/sec
lodash.map 3831.8 Ops/sec
Object.entries.map 1929.7 Ops/sec
vanilla for-loop w/ Object.entries 2178.6 Ops/sec
lodash.forEach 6337.7 Ops/sec
Object.values 26454.4 Ops/sec
Object.keys 2321.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

  • Object.keys