Variables caching (v4)

Revision 4 of this benchmark created on


Description

no comment

Setup

var a={b:{c:{d:Math.random()}}};

Test runner

Ready to run.

Testing in
TestOps/sec
no cache
var t=false;
if(a.b.c.d>.2)
{
    t=1-a.b.c.d>.5;
}
ready
cache
var d=a.b.c.d;

var t=false;
if(d>.2)
{
    t=1-d>.5;
}
ready

Revisions

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