Moo-Resig-Ender-My

JavaScript performance comparison

Revision 3 of this test case created by Jie

Info

Comparing Mootools, John Resig, Ender & My.js class systems on calling a method that calls a super method. Check the scripts MooTest.js, JRTest.js, EnderTest.js, MyTest.js.

Preparation code

<script src="http://myjs.fr/my-class/example/MooClass.js"></script>
<script src="http://myjs.fr/my-class/example/JRClass.js"></script>
<script src="http://myjs.fr/my-class/example/EnderClass.js"></script>
<script src="http://myjs.fr/my-class/my.class.min.js"></script>
<script src="http://myjs.fr/my-class/example/MooTest.js"></script>
<script src="http://myjs.fr/my-class/example/JRTest.js"></script>
<script src="http://myjs.fr/my-class/example/EnderTest.js"></script>
<script src="http://myjs.fr/my-class/example/MyTest.js"></script>
<script>
  var mooJohn = new MooParisLover('Carla Bruni');
  var jrJohn = new JRParisLover('Carla Bruni');
  var enderJohn = new EnderParisLover('Carla Bruni');
  var myJohn = new MyParisLover('Carla Bruni');
</script>

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Moo
mooJohn.setAddress('Matignon');
pending…
John Resig
jrJohn.setAddress('Matignon');
pending…
Ender
enderJohn.setAddress('Matignon');
pending…
My.js
myJohn.setAddress('Matignon');
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