replace string vs regex

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Regex
"#tab".replace(/#/, "")
ready
String
"#tab".replace("#", "")
ready

Revisions

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