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 typical value checks and their performance.</p>
17 <li>Typeof with Strings</li>
18 <li>Typeof with Constants</li>
23 <script type="text/javascript">
24 qx.core.Init.getInstance().defineMain(function()
30 var str = "Hello World"
36 var obj2 = { key1 : "hello world", key2 : "hello world", key3 : "hello world" }
38 function typeCheckTypeof1(vLoops)
40 for (var i=0; i<vLoops; i++)
42 typeof str === "string";
43 typeof nr1 === "number";
44 typeof nr2 === "number";
45 typeof nr3 === "number";
46 typeof nr4 === "number";
47 typeof obj1 === "object";
48 typeof obj2 === "object";
52 function typeCheckTypeof2(vLoops)
54 for (var i=0; i<vLoops; i++)
66 function typeCheckInstanceOf(vLoops)
68 for (var i=0; i<vLoops; i++)
75 obj1 instanceof Object
76 obj2 instanceof Object
80 new qx.dev.TimeTracker(typeCheckTypeof1, typeCheckTypeof2, typeCheckInstanceOf);