Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
own solution vs lodash
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko/20100101 Firefox/152.0
Browser:
Firefox 152
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
4 days ago
Test name
Executions per second
own soliton
30340014.0 Ops/sec
lodash
910315.2 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 updates = [{ jobId: 1, type: 'a' }, { jobId: 2, type: 'b' }, { jobId: 3, type: 'c' }, { jobId: 1, type: 'a' } ];
Tests:
own soliton
updates.filter( (update, index, updates) => index === updates.findIndex( (predicate) => predicate.jobId === update.jobId && predicate.type === update.type, ), );
lodash
_.uniqWith(updates, _.isEqual);