Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Some vs Find hard
(version: 0)
Comparing performance of:
Find vs Some
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var data = [] for (let i = 0; i < 50000; ++i) data.push({ username: 'toto' }) data.push({ username: 'titi' }) for (let i = 0; i < 25000; ++i) data.push({ username: 'toto' })
Tests:
Find
data.find(e => e.username === 'titi')
Some
data.some(e => e.username === 'titi')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Find
Some
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Browser/OS:
Chrome 122 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Find
6728.2 Ops/sec
Some
13013.9 Ops/sec
Related benchmarks:
Some vs Find vs For
some vs find low number of data
Some vs Find bool
Some vs Find early find
Comments
Confirm delete:
Do you really want to delete benchmark?