Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Lodash, Set, Array comparison
(version: 0)
Comparing performance of:
Lodash vs Array vs Set
Created:
3 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
var first = [...Array(100)].map(it => ~~(Math.random() * 1000)); var second = [...Array(20)].map(it => ~~(Math.random() * 1000));
Tests:
Lodash
_.intersection(first, second)
Array
first.filter(it => second.includes(it))
Set
new Set([...first, ...second])
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Lodash
Array
Set
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Array Intersection vs. Set Intersection vs. Lodash part 3
Unique lodash vs vanilla
Array Intersection vs. Set Intersection vs. Lodash - big
test 319823789172
Comments
Confirm delete:
Do you really want to delete benchmark?