3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <title>qooxdoo » Demo</title>
5 <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
7 <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
9 <script type="text/javascript" src="../../script/qx.js"></script>
12 <script type="text/javascript" src="../../script/layout.js"></script>
14 <div id="demoDescription">
15 <p>JS Object Storage Performance</p>
17 <h1>Test Description</h1>
18 <p>Precreate 50.000 objects (locally stored). After this create 10.000 new (not stored) objects inside a loop.</p>
19 <p>The "store" variable will be resetted after the first loop with "null".</p>
22 <p>The additional cleanup (overwrite with null) of the global storage optimizes performance after the first loop. First loop is done after ~1150ms. The following loop needs ~350ms. Quite good. The same value as in the first example, where the data have never exist.</p>
23 <p>Interesting because theoratically the function implemenetation of "test" is inside the scope of "store".</p>
26 <script type="text/javascript">
27 qx.core.Init.getInstance().defineMain(function()
31 for (var i=0; i<50000; i++) {
37 var _s = (new Date).valueOf();
39 for (var i=0; i<10000; i++) {
43 window.status = "time: " + (new Date).valueOf() + " | measured: " + ((new Date).valueOf() - _s) + "ms";
44 window.setTimeout(test, 1000);