regexp vs indexOf (v117)

Revision 117 of this benchmark created on


Preparation HTML

<script>
  var str = "hello world!";
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Regexp
str.indexOf('http:');
ready
indexOf
str.replace('http:', 'https://');
ready

Revisions

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