RegExp Test 3

Benchmark created by miller on


Preparation HTML

<script>
  var text_fail = '.a select,.b input,.b input[',
      regexp_without_quote = /^\s*[.\w-][.\w\s\->+~]*(,\s*[.\w-][.\w\s\->+~]*)*$/g,
      regexp_with_quote = /^\s*[.\w-][.\w\s\->+~]*(,\s*[.\w-][.\w\s\->+~]*)*"$/g;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
regexp_without_quote
regexp_without_quote.test(text_fail);
ready
regexp_with_quote
regexp_with_quote.test(text_fail);
ready

Revisions

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

  • Revision 1: published by miller on