< prev index next >

test/hotspot/jtreg/vmTestbase/vm/mlvm/mixed/stress/regression/b6969574/INDIFY_Test.java

Print this page
rev 53205 : [mq]: 8218178


 380 
 381         final Result[] results = new Result[benchmarks.length];
 382 
 383         print("\n======== Results (absolute)" + "; warmups: " + warmups
 384                 + "; measurements: " + measurements + "; iterations/run: " + iterations
 385                 + "; micro iterations: " + microIterations);
 386 
 387         for (int r = 0; r < benchmarks.length; r++) {
 388             results[r] = Result.calculate(benchmarks[r].runResults.toArray(new Measurement[0]), null);
 389         }
 390 
 391         for (int r = 0; r < benchmarks.length; r++) {
 392             results[r].report(r != compareToIdx ? results[compareToIdx] : null);
 393         }
 394 
 395         print("\n======== Conclusions");
 396 
 397         // TODO: exclude GC time, compilation time (optionally) from measurements
 398 
 399         print("Comparing invocation time orders");
 400         verifyTimeOrder(results[REFLECTION_CALL],         results[INVOKE_EXACT]);
 401         verifyTimeOrder(results[INVOKE_EXACT],            results[DIRECT_CALL]);
 402         verifyTimeOrder(results[INVOKE],                  results[DIRECT_CALL]);
 403         verifyTimeOrder(results[INVOKE_EXACT],            results[INDY]);
 404 
 405         return true;
 406     }
 407 
 408     // Below are routines for converting this test to a standalone one
 409     // This is useful if you want to run the test with JDK7 b103 release
 410     // where the regression can be seen
 411     static void print(String s) {
 412         Env.traceImportant(s);
 413     }
 414 
 415     static void trace(String s) {
 416         Env.traceNormal(s);
 417     }
 418 
 419     //boolean testFailed;
 420     //static void markTestFailed(String reason) {


 380 
 381         final Result[] results = new Result[benchmarks.length];
 382 
 383         print("\n======== Results (absolute)" + "; warmups: " + warmups
 384                 + "; measurements: " + measurements + "; iterations/run: " + iterations
 385                 + "; micro iterations: " + microIterations);
 386 
 387         for (int r = 0; r < benchmarks.length; r++) {
 388             results[r] = Result.calculate(benchmarks[r].runResults.toArray(new Measurement[0]), null);
 389         }
 390 
 391         for (int r = 0; r < benchmarks.length; r++) {
 392             results[r].report(r != compareToIdx ? results[compareToIdx] : null);
 393         }
 394 
 395         print("\n======== Conclusions");
 396 
 397         // TODO: exclude GC time, compilation time (optionally) from measurements
 398 
 399         print("Comparing invocation time orders");
 400         verifyTimeOrder(results[INDY],                    results[REFLECTION_CALL]);
 401         verifyTimeOrder(results[INVOKE_EXACT],            results[DIRECT_CALL]);
 402         verifyTimeOrder(results[INVOKE],                  results[DIRECT_CALL]);
 403         verifyTimeOrder(results[INVOKE_EXACT],            results[INDY]);
 404 
 405         return true;
 406     }
 407 
 408     // Below are routines for converting this test to a standalone one
 409     // This is useful if you want to run the test with JDK7 b103 release
 410     // where the regression can be seen
 411     static void print(String s) {
 412         Env.traceImportant(s);
 413     }
 414 
 415     static void trace(String s) {
 416         Env.traceNormal(s);
 417     }
 418 
 419     //boolean testFailed;
 420     //static void markTestFailed(String reason) {
< prev index next >