KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > test > performance > Main20kB


1 /*
2  *
3  * The contents of this file are subject to the terms of the Common Development
4  * and Distribution License (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
8  * or http://www.netbeans.org/cddl.txt.
9  *
10  * When distributing Covered Code, include this CDDL Header Notice in each file
11  * and include the License file at http://www.netbeans.org/cddl.txt.
12  * If applicable, add the following below the CDDL Header, with the fields
13  * enclosed by brackets [] replaced by your own identifying information:
14  * "Portions Copyrighted [year] [name of copyright owner]"
15  *
16  * The Original Software is NetBeans. The Initial Developer of the Original
17  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
18  * Microsystems, Inc. All Rights Reserved.
19  */

20
21 /*
22  * This is test class which should has 20 kB size
23  ******************************************************************************
24  ******************************************************************************
25  ******************************************************************************
26  ******************************************************************************
27  ******************************************************************************
28  ******************************************************************************
29  ******************************************************************************
30  ******************************************************************************
31  ******************************************************************************
32  ******************************************************************************
33  ******************************************************************************
34  ******************************************************************************
35  ******************************************************************************
36  ******************************************************************************
37  ******************************************************************************
38  ******************************************************************************
39  ******************************************************************************
40  ******************************************************************************
41  ******************************************************************************
42  ******************************************************************************
43  ******************************************************************
44  */

45
46 package org.netbeans.test.performance;
47
48 public class Main20kB {
49     
50     /** Creates a new instance of Main */
51     public Main20kB() {
52     }
53     
54     public void method1() {
55         System.out.println("*********************");
56         System.out.println("*********************");
57         System.out.println("*********************");
58         System.out.println("I am method 1");
59         System.out.println("*********************");
60         System.out.println("*********************");
61         System.out.println("*********************");
62     }
63     
64     public void method2() {
65         System.out.println("*********************");
66         System.out.println("*********************");
67         System.out.println("*********************");
68         System.out.println("I am method 2");
69         System.out.println("*********************");
70         System.out.println("*********************");
71         System.out.println("*********************");
72     }
73     
74     public void method3() {
75         System.out.println("*********************");
76         System.out.println("*********************");
77         System.out.println("*********************");
78         System.out.println("I am method 3");
79         System.out.println("*********************");
80         System.out.println("*********************");
81         System.out.println("*********************");
82     }
83     
84     public void method4() {
85         System.out.println("*********************");
86         System.out.println("*********************");
87         System.out.println("*********************");
88         System.out.println("I am method 4");
89         System.out.println("*********************");
90         System.out.println("*********************");
91         System.out.println("*********************");
92     }
93     
94     public void method5() {
95         System.out.println("*********************");
96         System.out.println("*********************");
97         System.out.println("*********************");
98         System.out.println("I am method 5");
99         System.out.println("*********************");
100         System.out.println("*********************");
101         System.out.println("*********************");
102     }
103     
104     public void method6() {
105         System.out.println("*********************");
106         System.out.println("*********************");
107         System.out.println("*********************");
108         System.out.println("I am method 6");
109         System.out.println("*********************");
110         System.out.println("*********************");
111         System.out.println("*********************");
112     }
113     
114     public void method7() {
115         System.out.println("*********************");
116         System.out.println("*********************");
117         System.out.println("*********************");
118         System.out.println("I am method 7");
119         System.out.println("*********************");
120         System.out.println("*********************");
121         System.out.println("*********************");
122     }
123     
124     public void method8() {
125         System.out.println("*********************");
126         System.out.println("*********************");
127         System.out.println("*********************");
128         System.out.println("I am method 8");
129         System.out.println("*********************");
130         System.out.println("*********************");
131         System.out.println("*********************");
132     }
133     
134     public void method9() {
135         System.out.println("*********************");
136         System.out.println("*********************");
137         System.out.println("*********************");
138         System.out.println("I am method 9");
139         System.out.println("*********************");
140         System.out.println("*********************");
141         System.out.println("*********************");
142     }
143     
144     public void method10() {
145         System.out.println("*********************");
146         System.out.println("*********************");
147         System.out.println("*********************");
148         System.out.println("I am method 10");
149         System.out.println("*********************");
150         System.out.println("*********************");
151         System.out.println("*********************");
152     }
153     
154     public void method11() {
155         System.out.println("*********************");
156         System.out.println("*********************");
157         System.out.println("*********************");
158         System.out.println("I am method 11");
159         System.out.println("*********************");
160         System.out.println("*********************");
161         System.out.println("*********************");
162     }
163     
164     public void method12() {
165         System.out.println("*********************");
166         System.out.println("*********************");
167         System.out.println("*********************");
168         System.out.println("I am method 12");
169         System.out.println("*********************");
170         System.out.println("*********************");
171         System.out.println("*********************");
172     }
173     
174     public void method13() {
175         System.out.println("*********************");
176         System.out.println("*********************");
177         System.out.println("*********************");
178         System.out.println("I am method 13");
179         System.out.println("*********************");
180         System.out.println("*********************");
181         System.out.println("*********************");
182     }
183     
184     public void method14() {
185         System.out.println("*********************");
186         System.out.println("*********************");
187         System.out.println("*********************");
188         System.out.println("I am method 14");
189         System.out.println("*********************");
190         System.out.println("*********************");
191         System.out.println("*********************");
192     }
193     
194     public void method15() {
195         System.out.println("*********************");
196         System.out.println("*********************");
197         System.out.println("*********************");
198         System.out.println("I am method 15");
199         System.out.println("*********************");
200         System.out.println("*********************");
201         System.out.println("*********************");
202     }
203     
204     public void method16() {
205         System.out.println("*********************");
206         System.out.println("*********************");
207         System.out.println("*********************");
208         System.out.println("I am method 16");
209         System.out.println("*********************");
210         System.out.println("*********************");
211         System.out.println("*********************");
212     }
213     
214     public void method17() {
215         System.out.println("*********************");
216         System.out.println("*********************");
217         System.out.println("*********************");
218         System.out.println("I am method 17");
219         System.out.println("*********************");
220         System.out.println("*********************");
221         System.out.println("*********************");
222     }
223     
224     public void method18() {
225         System.out.println("*********************");
226         System.out.println("*********************");
227         System.out.println("*********************");
228         System.out.println("I am method 18");
229         System.out.println("*********************");
230         System.out.println("*********************");
231         System.out.println("*********************");
232     }
233     
234     public void method19() {
235         System.out.println("*********************");
236         System.out.println("*********************");
237         System.out.println("*********************");
238         System.out.println("I am method 19");
239         System.out.println("*********************");
240         System.out.println("*********************");
241         System.out.println("*********************");
242     }
243     
244     public void method20() {
245         System.out.println("*********************");
246         System.out.println("*********************");
247         System.out.println("*********************");
248         System.out.println("I am method 20");
249         System.out.println("*********************");
250         System.out.println("*********************");
251         System.out.println("*********************");
252     }
253     
254     public void method21() {
255         System.out.println("*********************");
256         System.out.println("*********************");
257         System.out.println("*********************");
258         System.out.println("I am method 21");
259         System.out.println("*********************");
260         System.out.println("*********************");
261         System.out.println("*********************");
262     }
263     
264     public void method22() {
265         System.out.println("*********************");
266         System.out.println("*********************");
267         System.out.println("*********************");
268         System.out.println("I am method 22");
269         System.out.println("*********************");
270         System.out.println("*********************");
271         System.out.println("*********************");
272     }
273     
274     public void method23() {
275         System.out.println("*********************");
276         System.out.println("*********************");
277         System.out.println("*********************");
278         System.out.println("I am method 23");
279         System.out.println("*********************");
280         System.out.println("*********************");
281         System.out.println("*********************");
282     }
283     
284     public void method24() {
285         System.out.println("*********************");
286         System.out.println("*********************");
287         System.out.println("*********************");
288         System.out.println("I am method 24");
289         System.out.println("*********************");
290         System.out.println("*********************");
291         System.out.println("*********************");
292     }
293     
294     public void method25() {
295         System.out.println("*********************");
296         System.out.println("*********************");
297         System.out.println("*********************");
298         System.out.println("I am method 25");
299         System.out.println("*********************");
300         System.out.println("*********************");
301         System.out.println("*********************");
302     }
303     
304     public void method26() {
305         System.out.println("*********************");
306         System.out.println("*********************");
307         System.out.println("*********************");
308         System.out.println("I am method 26");
309         System.out.println("*********************");
310         System.out.println("*********************");
311         System.out.println("*********************");
312     }
313     
314     public void method27() {
315         System.out.println("*********************");
316         System.out.println("*********************");
317         System.out.println("*********************");
318         System.out.println("I am method 27");
319         System.out.println("*********************");
320         System.out.println("*********************");
321         System.out.println("*********************");
322     }
323     
324     public void method28() {
325         System.out.println("*********************");
326         System.out.println("*********************");
327         System.out.println("*********************");
328         System.out.println("I am method 28");
329         System.out.println("*********************");
330         System.out.println("*********************");
331         System.out.println("*********************");
332     }
333     
334     public void method29() {
335         System.out.println("*********************");
336         System.out.println("*********************");
337         System.out.println("*********************");
338         System.out.println("I am method 29");
339         System.out.println("*********************");
340         System.out.println("*********************");
341         System.out.println("*********************");
342     }
343     
344     public void method30() {
345         System.out.println("*********************");
346         System.out.println("*********************");
347         System.out.println("*********************");
348         System.out.println("I am method 30");
349         System.out.println("*********************");
350         System.out.println("*********************");
351         System.out.println("*********************");
352     }
353
354     public void method31() {
355         System.out.println("*********************");
356         System.out.println("*********************");
357         System.out.println("*********************");
358         System.out.println("I am method 31");
359         System.out.println("*********************");
360         System.out.println("*********************");
361         System.out.println("*********************");
362     }
363     
364     public void method32() {
365         System.out.println("*********************");
366         System.out.println("*********************");
367         System.out.println("*********************");
368         System.out.println("I am method 32");
369         System.out.println("*********************");
370         System.out.println("*********************");
371         System.out.println("*********************");
372     }
373     
374     public void method33() {
375         System.out.println("*********************");
376         System.out.println("*********************");
377         System.out.println("*********************");
378         System.out.println("I am method 33");
379         System.out.println("*********************");
380         System.out.println("*********************");
381         System.out.println("*********************");
382     }
383     
384     public void method34() {
385         System.out.println("*********************");
386         System.out.println("*********************");
387         System.out.println("*********************");
388         System.out.println("I am method 34");
389         System.out.println("*********************");
390         System.out.println("*********************");
391         System.out.println("*********************");
392     }
393     
394     public void method35() {
395         System.out.println("*********************");
396         System.out.println("*********************");
397         System.out.println("*********************");
398         System.out.println("I am method 35");
399         System.out.println("*********************");
400         System.out.println("*********************");
401         System.out.println("*********************");
402     }
403     
404     public void method36() {
405         System.out.println("*********************");
406         System.out.println("*********************");
407         System.out.println("*********************");
408         System.out.println("I am method 36");
409         System.out.println("*********************");
410         System.out.println("*********************");
411         System.out.println("*********************");
412     }
413     
414     public void method37() {
415         System.out.println("*********************");
416         System.out.println("*********************");
417         System.out.println("*********************");
418         System.out.println("I am method 37");
419         System.out.println("*********************");
420         System.out.println("*********************");
421         System.out.println("*********************");
422     }
423     
424     public void method38() {
425         System.out.println("*********************");
426         System.out.println("*********************");
427         System.out.println("*********************");
428         System.out.println("I am method 38");
429         System.out.println("*********************");
430         System.out.println("*********************");
431         System.out.println("*********************");
432     }
433         
434     public void method39() {
435         System.out.println("*********************");
436         System.out.println("*********************");
437         System.out.println("*********************");
438         System.out.println("I am method 39");
439         System.out.println("*********************");
440         System.out.println("*********************");
441         System.out.println("*********************");
442     }
443         
444     /**
445      * @param args the command line arguments
446      */

447     public static void main(String JavaDoc[] args) {
448     }
449     
450 }
451
Popular Tags