Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
includes VS endswith VS charat
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Browser:
Chrome 149
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one month ago
endsWith
233.9M/s
charAt
233.6M/s
includes
232.7M/s
View exact numbers
Test name
Executions per second
✓
endsWith
233,913,216 Ops/sec
charAt
233,623,808 Ops/sec
includes
232,687,552 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const id = '948795440318B'
Tests:
includes
id.includes('B')
endsWith
id.endsWith('B')
charAt
id.charAt(12) === 'B'