test-replace

Benchmark created by will on


Preparation HTML

<script>
var subject = "abcdabdabbcd"
var regex = new RegExp("ab+c", "g");
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
inline
subject.replace(/ab+c/g, "tacos")
ready
cached
subject.replace(regex, "tacos")
ready

Revisions

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