HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
lodash/keyBy
6.1M/s
map
4.0M/s

Fastest: lodash/keyBy (1.5x faster)

View exact numbers
  • lodash/keyBy: 6,115,174 ops/sec
  • map: 3,966,152 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/keyBy
    map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Mobile/15E148 Safari/604.1
Mobile Safari 15 on iOS 15.5
View result in a separate tab
lodash/keyBy
7.4M/s
map
2.5M/s
View exact numbers
Test name Executions per second
lodash/keyBy 7,442,611 Ops/sec
map 2,467,604 Ops/sec