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 Number creation performance</p>
17 <li>Using simple number</li>
18 <li>Using parseInt</li>
19 <li>Using parseFloat</li>
20 <li>Using new with string int</li>
21 <li>Using new with string float</li>
22 <li>Using new with simple number</li>
23 <li>Using new with parseInt</li>
24 <li>Using new with parseFloat</li>
28 <script type="text/javascript">
29 qx.core.Init.getInstance().defineMain(function()
34 function NumberCreate1(vLoops)
38 for (var i=0; i<vLoops; i++) {
43 function NumberCreate2(vLoops)
47 for (var i=0; i<vLoops; i++) {
52 function NumberCreate3(vLoops)
56 for (var i=0; i<vLoops; i++) {
61 function NumberCreate4(vLoops)
65 for (var i=0; i<vLoops; i++) {
70 function NumberCreate5(vLoops)
74 for (var i=0; i<vLoops; i++) {
79 function NumberCreate6(vLoops)
83 for (var i=0; i<vLoops; i++) {
84 foo = new Number(2392);
88 function NumberCreate7(vLoops)
92 for (var i=0; i<vLoops; i++) {
93 foo = new Number(parseInt(n1));
97 function NumberCreate8(vLoops)
101 for (var i=0; i<vLoops; i++) {
102 foo = new Number(parseFloat(n2));
106 new qx.dev.TimeTracker(NumberCreate1, NumberCreate2, NumberCreate3, NumberCreate4, NumberCreate5, NumberCreate6, NumberCreate7, NumberCreate8);