Classes (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
01
function TestCase() {}
TestCase.prototype.stuff = function() {}

var testCase = new TestCase();
ready
02
function TestCase() {
  this.stuff = function() {}
}

var testCase = new TestCase();
ready
03
var testCase = new function() {
  this.stuff = function() {}
}
ready
CoffeeScript
var TestCase;

TestCase = (function() {
  function TestCase() {}
  TestCase.prototype.stuff = function() {};
  return TestCase;
})();
ready

Revisions

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