Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
array find vs some -> list contains
(version: 0)
measure !!find to some in a list of 10-20
Comparing performance of:
array find vs array some
Created:
2 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.core.js"></script>
Tests:
array find
var a = ['hello', 'a', 'b', 'sdufos', 'lksjdflk', 'lmksjdf', 'lksjdfl', 'lkjsdlkfj','lsufoiqn', 'lksjdflks', 'bc']; var b = !!a.find(item => item === 'bc');
array some
var a = ['hello', 'a', 'b', 'sdufos', 'lksjdflk', 'lmksjdf', 'lksjdfl', 'lkjsdlkfj','lsufoiqn', 'lksjdflks', 'bc']; var b = a.some(item => item === 'bc');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
array find
array some
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!
Comments
Confirm delete:
Do you really want to delete benchmark?