JavaScript eval() Test

The purpose of this page is to determine the performance issues related to using eval() instead of native code. In all browsers, there is a vast difference between the amount of time it takes to execute native code versus code passed to eval().

The tests on this page involve reading each value from an array of 10,000 items. That is repeated a set number of times and the average time is reported. The tests may take several minutes to fully execute but should not crash the browser.

Back to my site.

Accesses variables times