IDL-Attributes vs. URI.js (v6)

Revision 6 of this benchmark created on


Description

Comparing performance of URI.js and Decomposed IDL Attributes

Preparation HTML

<script src="http://medialize.github.com/URI.js/src/URI.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
IDL-Attributes
var a = document.createElement("a");
a.href = "http://www.example.org/path/to/file.html?some=param#hash";
a.pathname = "/path/to/other/file.html";
a.href + "";
ready
URI.js
var a = new URI("http://www.example.org/path/to/file.html?some=param#hash");
a.pathname("/path/to/other/file.html");
a.href();
ready
new URL()
var u = new URL('http://www.example.org/path/to/file.html?some=param#hash');
u.pathname = '/path/to/other/file.html';
u.toString();
ready

Revisions

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