performance frozen object (v9)

Revision 9 of this benchmark created by Ruben Verborgh on


Setup

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

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
non-frozen object with non-existing key
if('b' in o1);
ready
frozen object with non-existing key
if('b' in o2);
ready

Revisions

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