IDL-Attributes vs. URI.js

JavaScript performance comparison

Test case created by Rodney Rehm

Info

Comparing performance of URI.js and Decomposed IDL Attributes

Preparation code

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

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/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 + "";
pending…
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();
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment