test (v44)

Revision 44 of this benchmark created on


Setup

var o = {
       a: {
          a: {
             a: {
                b: 'done'
             }
          }
       }
    };
    
    
    function a(o){
       return o.b || a(o.a)
    };
    
    function b(o){
       while(undefined === o.b){
          o = o.a;
       }
       
       return o.b;
    };

Test runner

Ready to run.

Testing in
TestOps/sec
1
a(o)
ready
2
b(o)
ready

Revisions

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