regexp vs toLowerCase and indexOf (v49)

Revision 49 of this benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
Regexp
str.match(/world/i);
ready
indexOf
str.toLowerCase().indexOf("world");
ready

Revisions

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