Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
lodash find vs lodash findIndex2
(version: 1)
Compare performance of _.find and _.findIndex
Comparing performance of:
lodash find vs _.findIndex
Created:
4 years ago
by:
Registered User
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 users = [ { 'user': 'joey', 'age': 28 }, { 'user': 'ross', 'age': 31 }, { 'user': 'chandler', 'age': 30 }, { 'user': 'jessika', 'age': 21 }, { 'user': 'amanda', 'age': 17 } ]
Tests:
lodash find
_.find(users, user => user.age === 30)
_.findIndex
_.findIndex(users, u => u.age === 30)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash find
_.findIndex
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/125.0.0.0 Safari/537.36
Browser/OS:
Chrome 125 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
lodash find
6496235.0 Ops/sec
_.findIndex
7413654.5 Ops/sec
Related benchmarks:
native findIndex vs lodash findIndex
Array find vs lodash _.find
native find vs lodash findIndex
native findIndex vs lodash findIndex vs lodash find
native findIndex vs lodash findIndex vs lodash find using startFrom
Comments
Confirm delete:
Do you really want to delete benchmark?