regexp vs indexOf (v111)

Revision 111 of this benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
search
str.search("world");
ready
match
str.match(/world/);
ready

Revisions

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