String.match vs Regex.test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
String.match
"hellow world".match(/o/)
ready
Regex.test
/o/.test("hello world")
ready

Revisions

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