Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
sortedIndex vs Loops
(version: 0)
Comparing performance of:
sortedIndex vs sortedIndex1
Created:
7 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 value = [{x: 12, y: 12, orderedCategoryIndex: 0 },{x: 12, y: 12, orderedCategoryIndex: 0 },{x: 12, y: 12, orderedCategoryIndex: 0 }] var value1 = [100,400,600]
Tests:
sortedIndex
_.sortedIndex(value1, 400)
sortedIndex1
value.forEach(({y}) => {console.log(y)})
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
sortedIndex
sortedIndex1
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:
lodash vs es6 in sort method
Sort lodash vs native
findIndex vs _sortedIndexBy
order desc with lodash orderBy vs es6 sort method
Comments
Confirm delete:
Do you really want to delete benchmark?