performance frozen object (v20)

Revision 20 of this benchmark created by René Bischoff on


Setup

o1 = {a: 1};
  o2 = {a: 1};
  o3 = {a: 1};
  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.