JavaScript Data Access Test

The purpose of this page is to determine the performance issues related to data access in JavaScript. In all browsers, literal values and local variables are faster to access than object properties and array items. The difference between object properties and array items varies by browser.

The tests on this page access each location a set number of times. That is repeated 100 times and the average time is reported. I also test property depth, so versus is validated. The tests may take several minutes to fully execute but should not crash the browser.

Back to my site.

Accesses data times