Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
RegEx.test vs String.search
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 137
Operating system:
Android
Device Platform:
Mobile
Date tested:
11 months ago
Test name
Executions per second
RegEx.test()
17423730.0 Ops/sec
String.search()
15839109.0 Ops/sec
Script Preparation code:
var REGEX = /abcdef/
Tests:
RegEx.test()
REGEX.test('This is a sample text that should work.')
String.search()
'This is a sample text that should work.'.search(REGEX)