Data Navigation / Access Testing. (v9)

Revision 9 of this benchmark created by John Bateman on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/ext-core/3.1.0/ext-core.js">
</script>
<script>
  var pi = Math.PI
  var a = new Array(10000), e;

var a = 1;
var alpha = (function (aValue) {
   var something = aValue;
   return {
      someValue: 1,
      beta: {
         someValue: 2,
         gamma: {
            someValue: 3,
            delta: {
               someValue: 4,
               epsilon: {
                  someValue: 1
               }
            }
         }
      }
   };
}(a));

</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Single Level
var a = alpha.someValue;
ready
Three Deep
var a = alpha.beta.gamma.someValue;
ready
Five Deep
var a = alpha.beta.gamma.delta.epsilon.someValue;
ready

Revisions

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