Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Starts with vs first character check
(version: 1)
Comparing performance of:
Check first char vs Starts with
Created:
11 months ago
by:
Registered User
Jump to the latest result
Script Preparation code:
var str = '@aadi' var str2 = 'aadi'
Tests:
Check first char
str[0] === '@' str2[0] === '@'
Starts with
str.startsWith('@') str2.startsWith('@')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Check first char
Starts with
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
10 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Browser/OS:
Chrome 137 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Check first char
257839776.0 Ops/sec
Starts with
274617376.0 Ops/sec
Comments
Confirm delete:
Do you really want to delete benchmark?