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 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Browser:
Firefox 128
Operating system:
Linux
Device Platform:
Desktop
Date tested:
2 years ago
JS some
53.9M/s
Lodash
20.5M/s
View exact numbers
Test name
Executions per second
✓
JS some
53,923,584 Ops/sec
Lodash
20,529,470 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');