Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Lodash: difference vs intersection
(version: 0)
Comparing performance of:
Difference - Full vs Intersection - Full vs Difference - Partial vs Intersection - Partial
Created:
9 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/lodash/4.16.0/lodash.min.js"></script>
Script Preparation code:
var arrFull = ['past','present','future'] var arrOne = ['past']
Tests:
Difference - Full
_.difference(arrFull, arrFull)
Intersection - Full
_.intersection(arrFull, arrFull)
Difference - Partial
_.difference(arrFull, arrOne)
Intersection - Partial
_.intersection(arrOne, arrFull)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
Difference - Full
Intersection - Full
Difference - Partial
Intersection - Partial
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:
Lodash: difference vs intersection
Lodash: difference vs intersection vs includes
Lodash intersection vs plain js
lodash intersect vs includes
Comments
Confirm delete:
Do you really want to delete benchmark?