Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash uniqWith vs Set
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/130.0.6723.90 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 130
Operating system:
iOS 18.0
Device Platform:
Mobile
Date tested:
one year ago
Test name
Executions per second
Lodash uniqWith
135830.5 Ops/sec
Set
568730.4 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js'></script>
Script Preparation code:
var array = Array.from(new Array(120), () => Math.floor(Math.random() * 40)) var copy = null
Tests:
Lodash uniqWith
copy = _.uniqWith(array, _.isEqual)
Set
copy = [...new Set(array)]