JS Object Storage Performance

Test Description

Precreate 50.000 objects (globally stored). After this create 10.000 new (non stored) objects inside a loop.

Use removeAll to clean up global storage after first loop.

Result

The additional cleanup (remove all entries) of the global 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 LocalObject_3.html.