Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
endsWith vs Regex aspx ending
(version: 0)
Benchmark.js
Comparing performance of:
Regex vs endsWith
Created:
2 years ago
by:
Guest
Go to the latest result
Tests:
Regex
"we/word.aspx".match("px$")
endsWith
"we/word.aspx".endsWith("px")
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Regex
endsWith
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Mobile/15E148 Safari/604.1
Browser/OS:
Mobile Safari 17 on iOS 17.3.1
View result in a separate tab
Embed
Embed Benchmark Result
endsWith
55.0M/s
Regex
20.3M/s
View exact numbers
Test name
Executions per second
✓
endsWith
55,013,400 Ops/sec
Regex
20,256,080 Ops/sec
Related benchmarks
endsWith vs Regex-literal
endsWith vs Regex aspx
Comments
Confirm delete:
Do you really want to delete benchmark?