Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array find test
(version: 0)
Comparing performance of:
lodash vs array
Created:
7 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var arr = [{'west': 1}, {'west':2}, {'west':3}]; _.find(arr, ['west', 3])
Tests:
lodash
var arr = [{'west': 1}, {'west':2}, {'west':3}]; _.find(arr, ['west', 3])
array
var arr = [{'west': 1}, {'west':2}, {'west':3}]; arr.find( x => x['west'] === 3 );
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
lodash
array
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:
arr delete: length=0 vs []
Array: get last item
`array.slice(-1)[0]` vs `array[array.length - 1]`
array.length = 0 vs []
Comments
Confirm delete:
Do you really want to delete benchmark?