Source Code Cross Referenced for TestClassCalibration2.java in  » Byte-Code » PROSE » measurements » suites » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Byte Code » PROSE » measurements.suites 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package measurements.suites;
002:
003:        public class TestClassCalibration2 extends TestClass {
004:
005:            // fields
006:            static int staticInt;
007:            static long staticLong;
008:            static Object staticObj;
009:
010:            private static int privateStaticInt;
011:            private static long privateStaticLong;
012:            private static Object privateStaticObject;
013:
014:            public int instanceInt;
015:            public long instanceLong;
016:            public Object instanceObj;
017:
018:            private int privateInstanceInt;
019:            private long privateInstanceLong;
020:            private Object privateInstanceObj;
021:
022:            // methods
023:            public void interfaceMethodShort() {
024:            }
025:
026:            public void interfaceMethodLong(Object x, Object o) {
027:            }
028:
029:            public void instanceMethodShort() {
030:            }
031:
032:            public void instanceMethodLong(Object x, Object o) {
033:            }
034:
035:            public static void staticMethodShort() {
036:            }
037:
038:            public static void staticMethodLong(Object x, Object o) {
039:            }
040:
041:            private static void privateStaticMethodShort() {
042:            }
043:
044:            private static void privateStaticMethodLong(Object x, Object o) {
045:            }
046:
047:            public synchronized void syncInstanceMethodShort() {
048:            }
049:
050:            public synchronized void syncInstanceMethodLong(Object x, Object o) {
051:            }
052:
053:            private void privateInstanceMethodShort() {
054:            }
055:
056:            private void privateInstanceMethodLong(Object x, Object o) {
057:            }
058:
059:            public void testPutField(int runs) {
060:                Object localObj = new Object();
061:                for (int i = 0; i < runs; i++)
062:                    ;
063:            }
064:
065:            public void testGetField(int runs) {
066:                Object localObj = new Object();
067:                instanceObj = localObj;
068:                for (int i = 0; i < runs; i++)
069:                    ;
070:            }
071:
072:            public void testNonJPOperations() {
073:                int i = 1;
074:                int ii = 1;
075:                int localInt = 1;
076:                long localLong = 1;
077:                Object localObj = new Object();
078:                int[] localArr = new int[10];
079:                Object oo = new TestClass1();
080:
081:                byte b1 = 1;
082:                byte b2 = 1;
083:                short s1 = 1;
084:                short s2 = 1;
085:                int i1 = 1;
086:                int i2 = 1;
087:                long l1 = 1;
088:                long l2 = 1;
089:
090:                final Object tcObject = new TestClass1();
091:                final int[] aa = new int[10];
092:
093:                // loop tests
094:
095:                // check casts
096:                for (i = TestFrequency.CHECKCAST; --i >= 0;) {
097:                }
098:
099:                // local operation
100:                for (i = TestFrequency.LOCALVAR; --i >= 0;) {
101:                }
102:
103:                // local additions
104:                for (i = TestFrequency.LOCALADD; --i >= 0;) {
105:                }
106:
107:            }
108:
109:            public void testFieldOperations() {
110:                int i;
111:                int localInt = 1;
112:                long localLong = 1;
113:                Object localObj = new Object();
114:                TestClass obj = new TestClass1();
115:
116:                // static puts
117:                for (i = TestFrequency.PUTSTATIC / 6; --i >= 0;) {
118:                }
119:
120:                // static puts
121:                for (i = TestFrequency.GET_ARGSSTATIC / 6; --i >= 0;) {
122:                }
123:
124:                // instance sets
125:                for (i = TestFrequency.PUTFIELD / 9; --i >= 0;) {
126:                }
127:
128:                // getfields
129:                for (i = TestFrequency.GET_ARGSFIELD / 9; --i >= 0;) {
130:                }
131:            }
132:
133:            public void testMethodOperations() {
134:                TestInterface localInterface = new TestClass1();
135:                TestClass obj = new TestClass1();
136:                int localInt = 1;
137:                Object localObj = new Object();
138:                int i;
139:
140:                // invokeinterface
141:                for (i = TestFrequency.INVOKEINTERFACE / 2; --i >= 0;) {
142:                }
143:
144:                for (i = TestFrequency.INVOKESPECIAL / 2; --i >= 0;) {
145:                }
146:
147:                // invoke virtual
148:                for (i = TestFrequency.INVOKEVIRTUAL / 6; --i >= 0;) {
149:                }
150:
151:                // invoke static
152:                for (i = TestFrequency.INVOKESTATIC / 4; --i >= 0;) {
153:                }
154:
155:            }
156:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.