Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
JS some vs Lodash some with callback vs Lodash some with object
(version: 1)
Comparing performance of:
JS some vs Lodash some with callback vs Lodash some with object
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js'></script>
Script Preparation code:
const array = Array(10000).fill(0).map((_, idx) => ({x: idx}));
Tests:
JS some
const found = array.some(s => s.x === 80000);
Lodash some with callback
const found = _.some(array, s => s.x === 8000);
Lodash some with object
const found = _.some(array, {x: 8000});
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
JS some
Lodash some with callback
Lodash some with object
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser/OS:
Chrome 135 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
JS some
99431.5 Ops/sec
Lodash some with callback
165088.2 Ops/sec
Lodash some with object
27756.0 Ops/sec
Related benchmarks:
Lodash _.first vs array first
Array.prototype.map vs Lodash.map on large data
foooooooooooooo
Test map
lodash range vs Array.from vs keys() + spread + fill
lodash vs map 4
indexOf vs Lodash indexOf
some vs Lodash Some
lodash range vs Array.from object + new Array vs keys() + spread
Comments
Confirm delete:
Do you really want to delete benchmark?