HTML Preparation code:
AخA
 
1
<script>https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.11/lodash.core.js</script>
Script Preparation code:
 
var arr = [
    {name: "test", age: 20},
    {name: "best", age: 30},
    {name: "blah", age: 50},
    {name: "js", age: 10},
    {name: "style", age: 29},
];
Tests:
  • Lodash _.sorBy

     
    _.sortBy(arr, 'age');
  • Lodash OrderBy

     
    //arr.sort(sortBy('age'));
    _.orderBy(arr, 'age');
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Lodash _.sorBy
    Lodash OrderBy

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.39
Chrome 100 on Windows
View result in a separate tab
Test name Executions per second
Lodash _.sorBy 885692.0 Ops/sec
Lodash OrderBy 928178.5 Ops/sec