HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 81 community runs

Desktop Results:
Chrome 71 runs
sortByKey
160.5M/s
_.sortBy
32/s

Fastest: sortByKey (5018287.3x faster)

View exact numbers
  • sortByKey: 160,507,376 ops/sec
  • _.sortBy: 32 ops/sec
Firefox 10 runs
sortByKey
1502.0M/s
_.sortBy
8/s

Fastest: sortByKey (187388419.5x faster)

View exact numbers
  • sortByKey: 1,502,006,528 ops/sec
  • _.sortBy: 8 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
    _.sortBy
    sortByKey

    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:143.0) Gecko/20100101 Firefox/143.0
Firefox 143 on Mac OS X 10.15
View result in a separate tab
sortByKey
1249.4M/s
_.sortBy
8/s
View exact numbers
Test name Executions per second
sortByKey 1,249,422,336 Ops/sec
_.sortBy 8 Ops/sec