HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Vanilla CUSTOM sort method
8.6M/s
Vanilla sort()
3.5M/s
Underscore sortBy()
1.3M/s

Fastest: Vanilla CUSTOM sort method (6.9x faster)

View exact numbers
  • Vanilla CUSTOM sort method: 8,612,023 ops/sec
  • Vanilla sort(): 3,467,831 ops/sec
  • Underscore sortBy(): 1,250,564 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
    Underscore sortBy()
    Vanilla sort()
    Vanilla CUSTOM sort method

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132 on Windows
View result in a separate tab
Vanilla CUSTOM sort method
11.5M/s
Vanilla sort()
8.1M/s
Underscore sortBy()
2.4M/s
View exact numbers
Test name Executions per second
Vanilla CUSTOM sort method 11,515,022 Ops/sec
Vanilla sort() 8,108,240 Ops/sec
Underscore sortBy() 2,397,556 Ops/sec