HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
 
var arr = []
Tests:
  • _.sortBy(arr)

     
    _.sortBy(arr)
  • _.orderBy(arr)

     
    _.orderBy(arr)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    _.sortBy(arr)
    _.orderBy(arr)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36
Chrome 75 on Mac OS X 10.14.5
View result in a separate tab
Test name Executions per second
_.sortBy(arr) 1024916.4 Ops/sec
_.orderBy(arr) 1261111.4 Ops/sec