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>Tests for filled Array creation performance
</p>
17 <li>Using
"[ values ]"</li>
18 <li>Using
"new Array(values)"</li>
22 <script type=
"text/javascript">
23 qx
.core
.Init
.getInstance().defineMain(function()
25 function ArrayCreate1(vLoops
)
29 for (var i
=0; i
<vLoops
; i
++) {
30 foo
= [ 1, 2, 3, 4, 5 ];
34 function ArrayCreate2(vLoops
)
38 for (var i
=0; i
<vLoops
; i
++) {
39 foo
= new Array(1, 2, 3, 4, 5);
43 new qx
.dev
.TimeTracker(ArrayCreate1
, ArrayCreate2
);