performance frozen object (v25)

Revision 25 of this benchmark created on


Setup

o1 = {
      a: 1
    };
    o2 = {
      a: 1
    };
    
    Object.seal(o2);

Test runner

Ready to run.

Testing in
TestOps/sec
non-frozen object
o1['a'];
//Object.keys(o1);//for (var key in o2);
ready
frozen object
o2['a'];
//Object.keys(o1);//for (var key in o2);
ready

Revisions

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