Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
startsWith vs includes (when no match)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:150.0) Gecko/20100101 Firefox/150.0
Browser:
Firefox 150
Operating system:
Windows
Device Platform:
Desktop
Date tested:
3 months ago
"Hi this is a test, would you look at that".includes("bonjour")
1037.2M/s
"Hi this is a test, would you look at that".startsWith("bonjour")
1029.9M/s
View exact numbers
Test name
Executions per second
✓
"Hi this is a test, would you look at that".includes("bonjour")
1,037,183,680 Ops/sec
"Hi this is a test, would you look at that".startsWith("bonjour")
1,029,852,096 Ops/sec
Tests:
"Hi this is a test, would you look at that".startsWith("bonjour")
"Hi this is a test, would you look at that".startsWith("bonjour")
"Hi this is a test, would you look at that".includes("bonjour")
"Hi this is a test, would you look at that".includes("bonjour")