Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
array length vs some for any
Compare the new ES6 spread operator with the traditional concat() method
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:141.0) Gecko/20100101 Firefox/141.0
Browser:
Firefox 141
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
array find
564.7M/s
array some
32.8M/s
View exact numbers
Test name
Executions per second
✓
array find
564,656,384 Ops/sec
array some
32,755,848 Ops/sec
HTML Preparation code:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.core.js"></script>
Tests:
array find
var a = ['hello', 'a', 'bc', 'cd', 'ef', 'gt']; var b = a.length === 0;
array some
var a = ['hello', 'a', 'bc', 'cd', 'ef', 'gt']; var b = a.some(item => item );