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: 9 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:141.0) Gecko/20100101 Firefox/141.0
Firefox 141 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
lodash.each 13466.5 Ops/sec
native for-of w/ entries 6765.7 Ops/sec
native forEach w/ entries 7017.8 Ops/sec
vanilla for-loop w/ Object.keys 18465.3 Ops/sec
vanilla for-loop w/ Object.entries 7224.4 Ops/sec
vanilla for-loop w/ Object.values (no keys) 67981.5 Ops/sec
native forEach w/ Object.values (no keys) 33275.4 Ops/sec
native for-in 1485.7 Ops/sec
native for-in es6 1493.7 Ops/sec