Object Literal Creation (v3)

Revision 3 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Standard
var bob = {
test: 1,
what: 'me',
todo: function(){},
allDone: true
};
ready
One by One
var bob = {};
bob.test = 1;
bob.what = 'me';
bob.todo = function(){};
bob.allDone = true;
ready
One by One (cautious)
var bob = {};
bob['test'] = 1;
bob['what'] = 'me';
bob['todo'] = function(){};
bob['allDone'] = true;
ready

Revisions

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