Object.create(null) vs literal (v2)

Revision 2 of this benchmark created on


Setup

var i = 0;
  var j = 0;

Test runner

Ready to run.

Testing in
TestOps/sec
creating "completely empty" object
var a = Object.create(null);
a.foo = i++;
ready
creating "empty" object
var a = {};
a.foo = j++;
ready

Revisions

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