Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
String indexOf vs endsWith
(version: 1)
Comparing performance of:
indexOf vs endsWith
Created:
9 months ago
by:
Registered User
Jump to the latest result
Script Preparation code:
var str = "123px"
Tests:
indexOf
str.indexOf('px') >- 1
endsWith
str.endsWith('px')
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
indexOf
endsWith
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!
Comments
Confirm delete:
Do you really want to delete benchmark?