HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 29 community runs

Desktop Results:
Chrome 24 runs
lodash.each
8K/s
lodash.map
8K/s
vanilla for-loop w/ Object.entries
4K/s
Object.entries.map
4K/s

Fastest: lodash.each (2.3x faster)

View exact numbers
  • lodash.each: 8,382 ops/sec
  • lodash.map: 7,910 ops/sec
  • vanilla for-loop w/ Object.entries: 4,038 ops/sec
  • Object.entries.map: 3,609 ops/sec
Firefox 5 runs
lodash.each
6K/s
lodash.map
4K/s
vanilla for-loop w/ Object.entries
4K/s
Object.entries.map
3K/s

Fastest: lodash.each (2.0x faster)

View exact numbers
  • lodash.each: 5,614 ops/sec
  • lodash.map: 3,871 ops/sec
  • vanilla for-loop w/ Object.entries: 3,531 ops/sec
  • Object.entries.map: 2,847 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    lodash.each
    lodash.map
    Object.entries.map
    vanilla for-loop w/ Object.entries

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0
Firefox 140 on Mac OS X 10.15
View result in a separate tab
lodash.each
9K/s
lodash.map
6K/s
vanilla for-loop w/ Object.entries
5K/s
Object.entries.map
4K/s
View exact numbers
Test name Executions per second
lodash.each 9,240 Ops/sec
lodash.map 5,937 Ops/sec
vanilla for-loop w/ Object.entries 5,148 Ops/sec
Object.entries.map 4,264 Ops/sec