Search vs Test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Regex-Object-Test
var Regex = new RegExp("\w+/\w+\?[\w&=%-]+$");

Regex.test("post/edit?id=1&name=foo");
ready
Regex-Inline-Test
(/\w+\/\w+\?[\w&=%-]+$/).test("post/edit?id=1&name=foo");
ready
String-Search
"post/edit?id=1&name=foo".search("\w+/\w+\?[\w&=%-]+$");
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.