Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Chrome 80
Windows
Desktop
4 years ago
Test name Executions per second
lodash.each 2077.1 Ops/sec
lodash.map 1498.2 Ops/sec
Object.entries.map 654.5 Ops/sec
Object.entries + for 757.6 Ops/sec
Object.entries + for of 754.4 Ops/sec
foreach 579.9 Ops/sec
for..in 331.8 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