Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
array find vs some better
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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Browser:
Chrome 144
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 months ago
Test name
Executions per second
array find
286288.1 Ops/sec
array some
279438.6 Ops/sec
Script Preparation code:
// make large array const randomStringArray = Array.from({ length: 1000 }, () => Math.random().toString(36).substring(7)); randomStringArray.splice(500, 0, "string");
Tests:
array find
const b = randomStringArray.find(item => item === 'string');
array some
const b = randomStringArray.some(item => item === 'string');