Register vs Memory
This test demonstrates a V8 optimization in which variables used in loops are stored in CPU registers instead of memory. V8 will opt-out of this optimization if the variable used in the loop is used in a closure.
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
You can edit these tests or add even more tests to this page by appending
/edit to the URL.