HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 21 community runs

Desktop Results:
Chrome 15 runs
Vanilla sort()
5.7M/s
Underscore sortBy()
2.2M/s
Lo-Dash sortBy()
2.2M/s

Fastest: Vanilla sort() (2.7x faster)

View exact numbers
  • Vanilla sort(): 5,738,810 ops/sec
  • Underscore sortBy(): 2,164,557 ops/sec
  • Lo-Dash sortBy(): 2,156,278 ops/sec
Firefox 6 runs
Vanilla sort()
2.8M/s
Lo-Dash sortBy()
680K/s
Underscore sortBy()
626K/s

Fastest: Vanilla sort() (4.4x faster)

View exact numbers
  • Vanilla sort(): 2,770,464 ops/sec
  • Lo-Dash sortBy(): 680,187 ops/sec
  • Underscore sortBy(): 625,803 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
    Lo-Dash sortBy()
    Underscore sortBy()
    Vanilla sort()

    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_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Mac OS X 10.15.7
View result in a separate tab
Vanilla sort()
5.7M/s
Underscore sortBy()
2.2M/s
Lo-Dash sortBy()
2.2M/s
View exact numbers
Test name Executions per second
Vanilla sort() 5,738,810 Ops/sec
Underscore sortBy() 2,164,557 Ops/sec
Lo-Dash sortBy() 2,156,278 Ops/sec