Methods.js

JavaScript performance comparison

Test case created by Shawn

Info

Checking the Speed of Methods.js

Preparation code

<script src="http://methodsjs.com/methods.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
Regular Console with Methods.js
console.log($("Hi").rev('write'));
pending…
Extra Function Console with Methods.js
$(function() {
  console.log($("Hi").rev('write'));
}).trigger();
pending…
No Biggy
console.log("iH");
pending…
Extra Function console no biggy
$(function() {
  console.log("iH");
}).trigger();
pending…
For Loop Methods.js
var a = function() {
    console.log($("Hi").rev('write'));
    };

for (;;) {
  a();
}
pending…
For loop
var a = function() {
    console.log("iH"));
};

for (;;) {
  a();
}
pending…
.times()
var a = function() {
    console.log("iH"));
};

$(a).times(Infinity);
pending…
.times() Methods.js
var a = function() {
    console.log($("Hi").rev("write")));
};

$(a).times(Infinity);
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