regexp tests

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
1
const N = 600;

const regExp = new RegExp("text", "gi");

const text = "not so long text, just to focus on regexp performance";
for (let i = 0; i < N; i++) {
  text.split(regExp);
}
ready
2
const N = 600;

const text = "not so long text, just to focus on regexp performance";

for (let i = 0; i < N; i++) {
  text.split(new RegExp("text", "gi"));
}
ready

Revisions

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