Object.create(null) iteration (v2)

Revision 2 of this benchmark created on


Setup

var i;
    var k;
    var x1 = Object.create(null);
    var x2 = Object.create(null);
    var y1 = {};
    var y2 = {};
    x2.a = y2.a = 1;

Test runner

Ready to run.

Testing in
TestOps/sec
Object.create(null) empty
for (i in x1) {
  k = i.toUpperCase();
}
ready
Object.create(null) props
for (i in x2) {
  k = i.toUpperCase();
}
ready
Literal empty
for (i in y1) {
  k = i.toUpperCase();
}
 
ready
Literal props
for (i in y2) {
  k = i.toUpperCase();
}
ready

Revisions

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