constructor vs. object literal (v78)

Revision 78 of this benchmark created on


Setup

function Hello()
     { }
    Hello.prototype.test = "ok";

Test runner

Ready to run.

Testing in
TestOps/sec
Constructor function
var o = new Object();
ready
Object literal
var o = {};
ready
Constr
var o = new Hello();
ready

Revisions

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