r20445: add README file indicating that the swat directory is no longer relevant
[samba.git] / swat.obsolete / apps / qooxdoo-examples / performance / LocalObject_1.html
1 <html>
2 <head>
3   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4   <title>qooxdoo &raquo; Demo</title>
5   <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
6   <!--[if IE]>
7   <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
8   <![endif]-->
9   <script type="text/javascript" src="../../script/qx.js"></script>
10 </head>
11 <body>
12   <script type="text/javascript" src="../../script/layout.js"></script>
13
14   <div id="demoDescription">
15     <p>JS Object Storage Performance</p>
16
17     <h1>Test Description</h1>
18     <p>Create 10.000 new (non stored) objects inside a loop. Identical to GlobalObject_1.html.</p>
19
20     <h1>Result</h1>
21     <p>The performance in IE is quite good (~330ms for each loop), compared to the same stuff executed without the precreated stuff.</p>
22   </div>
23
24   <script type="text/javascript">
25   qx.core.Init.getInstance().defineMain(function()
26   {
27     function test()
28     {
29       var _s = (new Date).valueOf();
30
31       for (var i=0; i<10000; i++) {
32         new Object()
33       };
34
35       window.status = "time: " + (new Date).valueOf() + " | measured: " + ((new Date).valueOf() - _s) + "ms";
36       window.setTimeout(test, 1000);
37     }
38
39     test();
40   });
41   </script>
42 </body>
43 </html>