Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
lodash.each 981.2 Ops/sec
lodash.map 927.6 Ops/sec
Object.entries.map 732.6 Ops/sec
vanilla for-loop w/ Object.entries 749.9 Ops/sec
lodash.forEach 976.3 Ops/sec
Object.values 766.7 Ops/sec
Object.keys 799.4 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