regex match vs includes

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
regex.match()
"a".match(/[a-zA-Z]/)
ready
includes()
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".includes("a")
ready

Revisions

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