Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
<script src="https://cdn.jsdelivr.net/g/lodash@4(lodash.min.js+lodash.fp.min.js)"></script>
(version: 1)
Comparing performance of:
lodash vs ES
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const intersectionBy = (arr, ...args) => { let iteratee = args.pop() if (typeof iteratee === 'string') { const prop = iteratee iteratee = item => item[prop] } return arr.filter(item1 => args.every(arr2 => arr2.find(item2 => iteratee(item1) === iteratee(item2))) ) }
Tests:
lodash
_.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor)
ES
intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash
ES
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser/OS:
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
lodash
2072279.4 Ops/sec
ES
23488082.0 Ops/sec
Related benchmarks:
Lodash Intersection vs. ES6 set has
Lodash Intersection vs. ES6 handle duplicate
lodash intersection test
lodash intersection test vs Set
lodash intersection test vs Set/Map
Lodash difference vs Set & Filter (once)
lodash difference vs array filter
Lodash intersection vs filter find2
lodash.intersection vs Vanilla JS
Comments
Confirm delete:
Do you really want to delete benchmark?