Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Lodash uniqWith vs Set with an Object
(version: 1)
Benchmark.js
Comparing performance of:
Lodash uniqWith vs Set
Created:
one month ago
by:
Guest
Go to the latest result
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), () => ({ name: 'Name', value: Math.floor(Math.random() * 40) })); var copy = null
Tests:
Lodash uniqWith
copy = _.uniq(array.map(a => a.value))
Set
copy = [...new Set(array.map(a => a.value))]
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Lodash uniqWith
Set
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one month ago
)
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/OS:
Chrome 150 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Lodash uniqWith
1.0M/s
Set
769K/s
View exact numbers
Test name
Executions per second
✓
Lodash uniqWith
1,025,555 Ops/sec
Set
768,754 Ops/sec
Related benchmarks
Lodash uniqBy vs Set
Lodash uniqBy vs Set 10000
Lodash uniqBy vs Set with Array of object
Lodash uniqBy vs Set vs Set spread
New set vs UniqWith
Lodash uniqWith vs Set
Lodash uniqBy vs Set with Big array
Lodash uniqBy vs Set, big array
Comments
Confirm delete:
Do you really want to delete benchmark?