HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 9 community runs

Desktop Results:
Chrome 9 runs
native sort of objects by localeCompare
4.5M/s
lodash _.orderBy
2.0M/s

Fastest: native sort of objects by localeCompare (2.2x faster)

View exact numbers
  • native sort of objects by localeCompare: 4,496,168 ops/sec
  • lodash _.orderBy: 2,033,505 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
    native sort of objects by localeCompare
    lodash _.orderBy

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:147.0) Gecko/20100101 Firefox/147.0
Firefox 147 on Mac OS X 10.15
View result in a separate tab
native sort of objects by localeCompare
5.6M/s
lodash _.orderBy
2.7M/s
View exact numbers
Test name Executions per second
native sort of objects by localeCompare 5,566,626 Ops/sec
lodash _.orderBy 2,707,280 Ops/sec