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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36 Edg/150.0.0.0
Browser:
Chrome 150
Operating system:
Windows
Device Platform:
Desktop
Date tested:
yesterday
Set
1.2M/s
Lodash uniqWith
811K/s
View exact numbers
Test name
Executions per second
✓
Set
1,209,856 Ops/sec
Lodash uniqWith
811,013 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)]