performance-frozen-object-prop-access (v3)

Revision 3 of this benchmark created on


Description

Make sure accesses aren't optimised out and the objects don't share the same V8 class.

Setup

"use strict";
    var o1 = { a: 1, b: 2, c: 3 }, o2 = { d: 1, e: 2, f: 3 };
    Object.freeze(o2);
    var c = 0;

Test runner

Ready to run.

Testing in
TestOps/sec
non-frozen object
c = o1.a;
c = o1.b;
ready
frozen object
c = o2.d;
c = o2.e;
ready

Revisions

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