performance frozen object (with constructor)) (v38)

Revision 38 of this benchmark created on


Setup

function Bar() {
      this.a = 1;
    }
    
    o1 = new Bar();
    o2 = new Bar();
    o3 = new Bar();
    Object.freeze(o2);
    Object.seal(o3);

Test runner

Ready to run.

Testing in
TestOps/sec
non-frozen object
for(var key in o1);
ready
frozen object
for(var key in o2);
ready
sealed object
for(var key in o3);
ready

Revisions

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