r21325: delete children in reverse order since the array is manipulated during the...
[Samba/gbeck.git] / webapps / qooxdoo-0.6.3-sdk / frontend / demo / source / html / performance / ArrayCreate_2.html
blobfcc0a05a73cdd641c212a779a5e3bbe9bbb4125d
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>
14 <div id="demoDescription">
15 <p>Tests for filled Array creation performance</p>
16 <ol>
17 <li>Using "[ values ]"</li>
18 <li>Using "new Array(values)"</li>
19 </ol>
20 </div>
22 <script type="text/javascript">
23 qx.core.Init.getInstance().defineMain(function()
25 function ArrayCreate1(vLoops)
27 var foo;
29 for (var i=0; i<vLoops; i++) {
30 foo = [ 1, 2, 3, 4, 5 ];
34 function ArrayCreate2(vLoops)
36 var foo;
38 for (var i=0; i<vLoops; i++) {
39 foo = new Array(1, 2, 3, 4, 5);
43 new qx.dev.TimeTracker(ArrayCreate1, ArrayCreate2);
44 });
45 </script>
46 </body>
47 </html>