inexofxregexp

Benchmark created on


Preparation HTML

<script>
  function ioExists(str){
    return str.indexOf('INPUT');
  }
  
  function reExists(str){
    return str.match(/INPUT/);
  }
  
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
indexOf
ioExists('<INPUT TYPE="TEXT">');
ready
regex
reExists('<INPUT TYPE="TEXT">');
ready

Revisions

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