Moo-Resig-Ender-My (v19)

Revision 19 of this benchmark created by Tan Nhu on


Description

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 HTML

<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 src="//dl.dropbox.com/u/7677927/jsface.js"></script>
<script src="http://dl.dropbox.com/u/7677927/JSFacePerson.js"</script>
<script src="//dl.dropbox.com/u/7677927/jsface.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');
  var jsfaceJohn = new JSFaceParisLover('Carla Bruni');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Moo
mooJohn.setAddress('Matignon');
ready
John Resig
jrJohn.setAddress('Matignon');
ready
Ender
enderJohn.setAddress('Matignon');
ready
My.js
myJohn.setAddress('Matignon');
ready
JSFace.js
jsfaceJohn.setAddress('Matignon');
ready

Revisions

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