JS Object Storage Performance

Test Description

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

Result

The additional cleanup (remove all entries) of the local storage optimizes performance after the first loop. First loop is done after ~1150ms. The following loop needs ~490ms. Not bad, but poorly compared to the version, where the storage have never exist before. (See first examples, which executes in ~350ms.)

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