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

  • native for-in es6

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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
    native for-in es6

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103 on Windows
View result in a separate tab
Test name Executions per second
lodash.each 3468.3 Ops/sec
native for-of w/ entries 2064.1 Ops/sec
native forEach w/ entries 1885.2 Ops/sec
vanilla for-loop w/ Object.keys 1075.6 Ops/sec
vanilla for-loop w/ Object.entries 2101.3 Ops/sec
vanilla for-loop w/ Object.values (no keys) 44180.8 Ops/sec
native forEach w/ Object.values (no keys) 27109.6 Ops/sec
native for-in 527.0 Ops/sec
native for-in es6 546.4 Ops/sec


;