Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array find vs includes
(version: 0)
Comparing performance of:
includes: first vs includes: second vs includes: missing vs find: first vs find: second vs find: missing
Created:
5 years ago
by:
Registered User
Jump to the latest result
Tests:
includes: first
!['PDP Why Not Try', 'PDP Recently Viewed'].includes('PDP Why Not Try')
includes: second
!['PDP Why Not Try', 'PDP Recently Viewed'].includes('PDP Recently Viewed')
includes: missing
!['PDP Why Not Try', 'PDP Recently Viewed'].includes('blarg')
find: first
!['PDP Why Not Try', 'PDP Recently Viewed'].find(origin => origin === 'PDP Why Not Try')
find: second
['PDP Why Not Try', 'PDP Recently Viewed'].find(origin => origin === 'PDP Recently Viewed')
find: missing
['PDP Why Not Try', 'PDP Recently Viewed'].find(origin => origin === 'blarg')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (6)
Previous results
Fork
Test case name
Result
includes: first
includes: second
includes: missing
find: first
find: second
find: missing
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
find vs includes
IndexOf vs Includes vs find
array indexOf vs includes vs some v3
find vs includes vs indexof
#2 Array Includes vs. Find
Comments
Confirm delete:
Do you really want to delete benchmark?