Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash some vs JS some
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Browser:
Firefox 132
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Lodash
35069540.0 Ops/sec
JS some
113757648.0 Ops/sec
HTML Preparation code:
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
const array = ['apples', 'bananas', 'oranges', 'melons'];
Tests:
Lodash
const array = ['apples', 'bananas', 'oranges', 'melons']; const found = _.some(array, s => s === 'oranges');
JS some
const array = ['apples', 'bananas', 'oranges', 'melons']; const found = array.some(s => s === 'oranges');