JS Object Storage Performance

Test Description

Precreate 50.000 objects (locally stored). After this create 10.000 new (not stored) objects inside a loop.

As the loop will be executed inside the scope of "store", the browser must keep the information about "store" with each execution of "test", even if called from the timeout.

Result

The performance in IE is poor (~1150ms for each loop), compared to the same stuff executed without so much precreated objects (previous example).

It makes no difference if we use a global or a local variable here. It's identical to GlobalObject_2.html.