Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
startsWith vs includes (same search) vs search
(version: 0)
Comparing performance of:
includes vs startsWith vs search
Created:
3 years ago
by:
Guest
Jump to the latest result
Tests:
includes
const str = "https://firebase.com/this/is/a/long/thing" str.includes("https://firebase")
startsWith
const str = "https://firebase.com/this/is/a/long/thing" str.startsWith("https://firebase")
search
const str = "https://firebase.com/this/is/a/long/thing" !!~str.search(/^https:\/\/firebase/)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
includes
startsWith
search
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:
startsWith vs includes (same search)
javascript startsWith() vs includes()
Js Search -String IndexOf vs Includes
Js Search - String StartsWith vs Includes
check application json startswith vs includes
Comments
Confirm delete:
Do you really want to delete benchmark?