Property access 88

Benchmark created by Konstantin on


Preparation HTML

<script>
var a =
{
    b:
    {
        c: {
            v0: -0.707,
            v1: 1.0,
            v2: -1.0,
            v3: 0,
            v4: 0.707,
            v5: 0.33,
            v6: 0.66
        }
    }
};
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
By Dots
var n0 = a.b.c.v0;
var n1 = a.b.c.v1;
var n2 = a.b.c.v2;
var n3 = a.b.c.v3;
var n4 = a.b.c.v4;
var n5 = a.b.c.v5;
var n6 = a.b.c.v6;
var n7 = n0 + n1 * n2 - n3 / n4 + n5;
var n8 = n0 + n1 * n2 - n3 / n4 + n5;
var n9 = n0 + n1 * n2 - n3 / n4 + n5;
var n10 = n0 + n1 * n2 - n3 / n4 + n5;
var n11 = n0 + n1 * n2 - n3 / n4 + n5;
var n12 = n0 + n1 * n2 - n3 / n4 + n5;
var n13 = n0 + n1 * n2 - n3 / n4 + n5;
var n14 = n0 + n1 * n2 - n3 / n4 + n5;
var n = pi * 18;
ready
By Name
var n0 = a['b']['c']['v0'];
var n1 = a['b']['c']['v1'];
var n2 = a['b']['c']['v2'];
var n3 = a['b']['c']['v3'];
var n4 = a['b']['c']['v4'];
var n5 = a['b']['c']['v5'];
var n6 = a['b']['c']['v6'];
var n7 = n0 + n1 * n2 - n3 / n4 + n5;
var n8 = n0 + n1 * n2 - n3 / n4 + n5;
var n9 = n0 + n1 * n2 - n3 / n4 + n5;
var n10 = n0 + n1 * n2 - n3 / n4 + n5;
var n11 = n0 + n1 * n2 - n3 / n4 + n5;
var n12 = n0 + n1 * n2 - n3 / n4 + n5;
var n13 = n0 + n1 * n2 - n3 / n4 + n5;
var n14 = n0 + n1 * n2 - n3 / n4 + n5;
var n = pi * 18;
ready

Revisions

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

  • Revision 1: published by Konstantin on