Run details:
Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/114.0 Firefox/114.0
Firefox Mobile 114
Android
Mobile
one year ago
Test name Executions per second
lodash.each 1906.1 Ops/sec
native for-of w/ entries 813.2 Ops/sec
native forEach w/ entries 973.3 Ops/sec
vanilla for-loop w/ Object.keys 2449.0 Ops/sec
vanilla for-loop w/ Object.entries 861.5 Ops/sec
vanilla for-loop w/ Object.values (no keys) 7753.4 Ops/sec
native forEach w/ Object.values (no keys) 4654.7 Ops/sec
native for-in 333.3 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