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>Testing the incluence to the performance of data using the prototype mechanism on classes.</p>
18 <script type="text/javascript">
19 qx.core.Init.getInstance().defineMain(function()
21 var emptyObject = function() {};
22 var protoObject1 = function() {};
23 var protoObject2 = function() {};
25 for (var i=0; i<1000; i++)
27 protoObject1.prototype["i" + i] = function() {
28 alert("Hello World: " + i);
32 for (var i=0; i<1000; i++)
34 protoObject2.prototype["i" + i] = "Hello World";
37 function empty(vLoops)
39 for (var i=0; i<vLoops; i++) {
44 function protos1(vLoops)
46 for (var i=0; i<vLoops; i++) {
51 function protos2(vLoops)
53 for (var i=0; i<vLoops; i++) {
58 new qx.dev.TimeTracker(empty, protos1, protos2);