passtest (v2)

Revision 2 of this benchmark created on


Setup

function a(s) {
      return /(?=.*[\W])(?=(.*[a-z]){3})(?=(.*[A-Z]){2}).{8,}/.test(s)
    }
    
    function b(s) {
      return /(?=(.*[a-z]){3})(?=(.*[A-Z]){2})(?=.*[\W]).{8,}/.test(s)
    }
    var test1 = "abcdefghABC";

Test runner

Ready to run.

Testing in
TestOps/sec
test1
a(test1);
ready
test2
b(test1);
ready

Revisions

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