JavaScript Object Oriented Libraries Benchmark (v9)

Revision 9 of this benchmark created by Tan Nhu on


Description

=== INSTANTIATION A CHILD CLASS ===

MooTools and Ext Core are removed because they add extra information into native classes. They slow down other libraries.

Ext Core OOP is fast, MooTools OOP is super slow!

TODO: - Add YUI

Preparation HTML

<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/jsface.js"></script>
<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/jsface.js"></script>

<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/my.class.js"</script>
<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/my.class.js"</script>

<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/jrclass.js"</script>
<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/jrclass.js"</script>

<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/klass.js"></script>
<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/klass.js"></script>

<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/classy.js"></script>
<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/classy.js"></script>

<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/ptclass.js"</script>
<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/lib/ptclass.js"</script>

<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/all.js"></script>
<script src="http://dl.dropbox.com/u/7677927/oop-benchmark/all.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
JSFace
new JSFaceParisLover("John");
ready
my.Class
new MyParisLover("John");
ready
John Resig Class
new JRParisLover("John");
ready
Klass
new EnderParisLover("John");
ready
Classy
new ClassyParisLover("John");
ready
PTClass
new PTClassParisLover("John");
ready

Revisions

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