Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Chrome 87
Windows
Desktop
3 years ago
Test name Executions per second
lodash.each 470.7 Ops/sec
lodash.map 510.2 Ops/sec
Object.entries.map 182.2 Ops/sec
Object.entries + for 213.2 Ops/sec
Object.entries + for..of 208.1 Ops/sec
forEach 303.8 Ops/sec
for..in 184.2 Ops/sec
lodash.forOwn 549.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash.each

  • lodash.map

  • Object.entries.map

  • Object.entries + for

  • Object.entries + for..of

  • forEach

  • for..in

  • lodash.forOwn


;