Class Benchmark

java.lang.Object
EDU.purdue.cs.bloat.benchmark.Benchmark

public class Benchmark extends 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:
  • Constructor Details

    • Benchmark

      public Benchmark()
  • Method Details

    • init

      public static void init(Class main)
    • run

      public static void run(Class main, String[] args)
    • setMode

      public static void setMode(int mode)
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception