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

  • native for-in

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
    native for-in

    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/95.0.4638.69 Safari/537.36 Edg/95.0.1020.53
Chrome 95 on Windows
View result in a separate tab
Test name Executions per second
lodash.each 3163.8 Ops/sec
native for-of w/ entries 1855.8 Ops/sec
native forEach w/ entries 1718.3 Ops/sec
vanilla for-loop w/ Object.keys 1047.4 Ops/sec
vanilla for-loop w/ Object.entries 303.7 Ops/sec
native for-in 561.4 Ops/sec


;