commit micro benchmarks for later experiments
[IRC.git] / Robust / src / Benchmarks / oooJava / micro2 / test.java
1 public class test {
2
3         public static void main(String argv[]) {
4
5             long x=0;
6             long count=500000;
7
8             if(argv.length>0){
9                 count=count * Integer.parseInt(argv[0]);
10             }
11
12             long s=System.currentTimeMillis();
13
14             for(long i=0;i<count;i++){
15                 rblock rchild{
16                 }
17                 x++;
18             }
19
20             long e1=System.currentTimeMillis();
21             System.out.println( "x="+x );
22             long e2=System.currentTimeMillis();
23
24             double dt1 = ((double)e1-s)/(Math.pow( 10.0, 3.0 ) );
25             double dt2 = ((double)e2-s)/(Math.pow( 10.0, 3.0 ) );
26             System.out.println( "dt1="+dt1+"s" );
27             System.out.println( "dt2="+dt2+"s" );
28         }
29
30 }