Includes vs regex

Benchmark created on


Setup

let a = "abcdefg".repeat(1000);

Test runner

Ready to run.

Testing in
TestOps/sec
Includes
a.includes("efg");
ready
Regex
/efg/.test(a);
ready

Revisions

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