performance frozen object (v16)

Revision 16 of this benchmark created on


Setup

o1 = Object.create(null);
    o2 = Object.create(null);
    o3 = Object.create(null);
    o1.a = o2.a = o3.a=1;
    
    Object.freeze(o2);
    Object.seal(o3);

Test runner

Ready to run.

Testing in
TestOps/sec
non-frozen object with existing key
if('a' in o1);
ready
frozen object with existing key
if('a' in o2);
ready
sealed object with existing key
if('a' in o3);
ready
non-frozen object with non-existing key
if('b' in o1);
ready
frozen object with non-existing key
if('b' in o2);
ready
sealed object with non-existing key
if('b' in o3);
ready

Revisions

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