Run details:
Mozilla/5.0 (Linux; Android 10; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.120 Mobile Safari/537.36
Chrome Mobile 85
Android
Mobile
4 years ago
Test name Executions per second
lodash.each 1044.9 Ops/sec
native for-of w/ entries 554.8 Ops/sec
native forEach w/ entries 489.2 Ops/sec
vanilla for-loop w/ Object.keys 383.7 Ops/sec
vanilla for-loop w/ Object.entries 555.6 Ops/sec
vanilla for-loop w/ Object.values (no keys) 7670.4 Ops/sec
native forEach w/ Object.values (no keys) 2119.3 Ops/sec
native for-in 196.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash.each

  • native for-of w/ entries

  • native forEach w/ entries

  • vanilla for-loop w/ Object.keys

  • vanilla for-loop w/ Object.entries

  • vanilla for-loop w/ Object.values (no keys)

  • native forEach w/ Object.values (no keys)

  • native for-in