constructor vs. object literal (v52)

Revision 52 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Constructor function
var o1 = new Object();
o1.p = "foo";
o1.x = "bar";
ready
Object literal
var o2 = {};
o2.p = "foo";
o2.x = "bar";
ready

Revisions

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