HTML Preparation code:
Script Preparation code:
Tests:
  • _.orderBy asc

  • array.prototype.sort asc

  • _.orderBy desc

  • array.prototype.sort desc

  • array.prototype.sort desc + check type

  • array.prototype.sort asc + check type

  • _.orderBy asc st

  • _.orderBy desc st

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    _.orderBy asc
    array.prototype.sort asc
    _.orderBy desc
    array.prototype.sort desc
    array.prototype.sort desc + check type
    array.prototype.sort asc + check type
    _.orderBy asc st
    _.orderBy desc st

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
_.orderBy asc 29.5 Ops/sec
array.prototype.sort asc 180.1 Ops/sec
_.orderBy desc 100.9 Ops/sec
array.prototype.sort desc 217.3 Ops/sec
array.prototype.sort desc + check type 151.0 Ops/sec
array.prototype.sort asc + check type 165.1 Ops/sec
_.orderBy asc st 80.7 Ops/sec
_.orderBy desc st 83.4 Ops/sec