Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
дададад
(version: 0)
дадад
Comparing performance of:
lodash vs native
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 keywords = new Array(3000).fill({}).map((_, i) => ({id: i})); var selectedKeywords = new Array(100).fill({}).map((_, i) => ({id: i}));
Tests:
lodash
let count1 = _.filter(keywords, keyword => _.some(selectedKeywords, sk => sk.id === keyword.id)).length;
native
let count2 = keywords.filter(keyword => { selectedKeywords.some(sk => sk.id === keyword.id); }).length;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash
native
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:
tesst1
aadasdsa
Test map
Test Lodash KarthikMM
_.merge vs _.assign vs JS reduce
Comments
Confirm delete:
Do you really want to delete benchmark?