performance frozen object (v31)

Revision 31 of this benchmark created on


Setup

o1 = {
      a: 1,
      b: 2,
      c: 3,
      d: 4,
      e: 5
    };
    o2 = {
      a: 1,
      b: 2,
      c: 3,
      d: 4,
      e: 5
    };
    
    Object.freeze(o2);

Test runner

Ready to run.

Testing in WebKit 537.36 / undefined
TestOps/sec
non-frozen object
var k = Object.keys(o1);
ready
frozen object
var k = Object.keys(o2);
ready

Revisions

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