summaryrefslogtreecommitdiff
path: root/swat/apps/qooxdoo-examples/performance/Qooxdoo_1.html
blob: bad557464162ddcfd5c81c9f6ad45fb45f4f9cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>qooxdoo &raquo; Demo</title>
  <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
  <!--[if IE]>
  <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
  <![endif]-->
  <script type="text/javascript" src="../../script/qx.js"></script>
</head>
<body>
  <script type="text/javascript" src="../../script/layout.js"></script>

  <div id="demoDescription">
    <p>Tests for qooxdoo object performance</p>
    <ol>
      <li>qx.core.Object</li>
      <li>qx.core.Target</li>
      <li>qx.event.type.Event</li>
      <li>qx.event.type.MouseEvent</li>
      <li>qx.ui.basic.Terminator</li>
      <li>qx.ui.layout.CanvasLayout</li>
      <li>qx.ui.layout.BoxLayout</li>
    </ol>
  </div>

  <script type="text/javascript">
  qx.core.Init.getInstance().defineMain(function()
  {
    function TestObject(vLoops)
    {
      for (var i=0; i<vLoops; i++) {
        new qx.core.Object;
      };
    };

    function TestTarget(vLoops)
    {
      for (var i=0; i<vLoops; i++) {
        new qx.core.Target;
      };
    };

    function TestEvent(vLoops)
    {
      for (var i=0; i<vLoops; i++) {
        new qx.event.type.Event;
      };
    };

    function TestMouseEvent(vLoops)
    {
      for (var i=0; i<vLoops; i++) {
        new qx.event.type.MouseEvent;
      };
    };

    function TestTerminator(vLoops)
    {
      for (var i=0; i<vLoops; i++) {
        new qx.ui.basic.Terminator;
      };
    };

    function TestCanvasLayout(vLoops)
    {
      for (var i=0; i<vLoops; i++) {
        new qx.ui.layout.CanvasLayout;
      };
    };

    function TestBoxLayout(vLoops)
    {
      for (var i=0; i<vLoops; i++) {
        new qx.ui.layout.BoxLayout;
      };
    };

    new qx.dev.TimeTracker(TestObject, TestTarget, TestEvent, TestMouseEvent, TestTerminator, TestCanvasLayout, TestBoxLayout);
  });
  </script>
</body>
</html>