URI parser (v9)

Revision 9 of this benchmark created on


Setup

var urlParseRE = /^(?:([^:\/?\#]+):)?(?:\/\/([^\/?\#]*))?([^?\#]*)(?:\?([^\#]*))?(?:\#(.*))?/;
  
  var parser = document.createElement('a');
  
  var url = "http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&type=unread#msg-content";

Test runner

Ready to run.

Testing in
TestOps/sec
Regex
var result = url.match(parser);
ready
Native
parser.href = url;
ready

Revisions

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