Object Literal Creation (v5)

Revision 5 of this benchmark created on


Setup

nullFn = function(){};

Test runner

Ready to run.

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

Revisions

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