Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Chrome 78
Linux
Desktop
4 years ago
Test name Executions per second
lodash.each 1339.0 Ops/sec
lodash.map 921.1 Ops/sec
Object.entries.map 826.6 Ops/sec
Object.entries + for 1122.7 Ops/sec
Object.entries + for of 1116.9 Ops/sec
foreach 507.3 Ops/sec
for..in 304.4 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