Native Class and CanvasEngine Class Test2

JavaScript performance comparison

Test case created by

Preparation code

<script src="http://canvasengine.net/cdn/canvasengine-1.0.6.all.min.js">
</script>
      
<script>
Benchmark.prototype.setup = function() {
  function MyClass1() {
  }
  
  MyClass1.prototype = {
    foo: function(p) {
      this.b = p;
    }
  };
  
  Class.create("MyClass2", {
    foo: function(p) {
      this.b = p;
    }
  });
  
  var myclass1 = new MyClass1(),
      myclass2 = Class.new("MyClass2");

};
</script>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Native Class
myclass1.foo("hello");
pending…
CanvasEngine Class
myclass2.foo("hello");
pending…

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

Compare results of other browsers

0 Comments