Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
sort object
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
lodash
5328431.5 Ops/sec
arr
1093840.6 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
var param = { "date": "2019/02/11", "time": "08:00:00", "ex": true }; var fruits = [ { "date": "2019/02/01", "time": "08:00:00", "ex": true }, { "date": "2019/02/08", "time": "06:00:00", "ex": false }, { "date": "2019/02/06", "time": "07:30:00", "ex": false }, { "date": "2019/02/14", "time": "10:00:00", "ex": true }, { "date": "2019/02/11", "time": "05:45:00", "ex": true } ];
Tests:
lodash
fruits.sort(function(a,b){ return a.time > b.time; });
arr
_.sortBy(fruits, "time");