Class Benchmark


  • public class Benchmark
    extends java.lang.Object
    This class is used to run a benchmark Java program with Perfmon running in the background. Perfmon is a software package developed at Michigan State University that allows user-level programs to access the hardware counters on Sparc processors.

    The main method of this class takes several arguments (note that the first four arguments are mutually exclusive):

        -inst-load-stall       Count load interlock induced stalls
        -dcache                Count data cache hit rate
        -cycle-ic-miss-stall   Count I-cache miss induced stalls (and cycles)
        -inst-cycle            Count instructions (and cycles)
     
        -run n                 How many times is the program run
     
        class                  Java class to run (the benchmark)
        args                   Arguments to benchmark class
     
    The real work is done by the native run method that is implemented in benchmark.c.
    See Also:
    BenchmarkSecurityManager
    • Constructor Summary

      Constructors 
      Constructor Description
      Benchmark()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void init​(java.lang.Class main)  
      static void main​(java.lang.String[] args)  
      static void run​(java.lang.Class main, java.lang.String[] args)  
      static void setMode​(int mode)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Benchmark

        public Benchmark()
    • Method Detail

      • init

        public static void init​(java.lang.Class main)
      • run

        public static void run​(java.lang.Class main,
                               java.lang.String[] args)
      • setMode

        public static void setMode​(int mode)
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception