The purpose of this page is to determine the performance issues related to prototype chain member depth in JavaScript. In all browsers, instance members are accessed faster than prototype members, but how prototype chain depth affects member retrieval varies.
The tests on this page access each member a set number of times. That is repeated 100 times and the average time is reported. The prototype chain is augmented by creating a series of constructors that each inherit from the previous. The tests may take several minutes to fully execute but should not crash the browser.
Back to my site.
Accesses properties
times