Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
endsWith vs Regex
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 13; Mobile; rv:127.0) Gecko/127.0 Firefox/127.0
Browser:
Firefox Mobile 127
Operating system:
Android
Device Platform:
Mobile
Date tested:
2 years ago
endsWith
485.8M/s
Regex
3.9M/s
View exact numbers
Test name
Executions per second
✓
endsWith
485,764,704 Ops/sec
Regex
3,854,526 Ops/sec
Tests:
Regex
"this is a test".match("test$")
endsWith
"this is a test".endsWith("test")