IDL-Attributes vs. URI.js (v3)

Revision 3 of this benchmark created on


Description

Comparing performance of URI.js and Decomposed IDL Attributes

Preparation HTML

<script src="//www.cinsoft.net/mylib099-min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<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

Revisions

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