object-freeze (v15)

Revision 15 of this benchmark created on


Setup

function getFrozen() {
    var o = Object.freeze({
      a: 1,
      b: 2
    });
    return o;
    }
    function getNormal() {
    var o = {
      a: 1,
      b: 2
    };
    return o;
    }

Test runner

Ready to run.

Testing in
TestOps/sec
freeze
getFrozen()
ready
normal
getNormal()
ready

Revisions

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