Class Benchmark


  • class Benchmark
    extends java.lang.Object
    Benchmarks the performance of matrix algorithms.
    Version:
    1.0, 09/24/99
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Benchmark()
      Makes this class non instantiable, but still let's others inherit from it.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void benchmark​(int runs, int size, java.lang.String kind, boolean print, int initialCapacity, double minLoadFactor, double maxLoadFactor, double percentNonZero)
      Runs a bench on matrices holding double elements.
      protected static double cubicLoop​(int runs, int size)  
      static void main​(java.lang.String[] args)
      Benchmarks various matrix methods.
      • Methods inherited from class java.lang.Object

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

      • Benchmark

        protected Benchmark()
        Makes this class non instantiable, but still let's others inherit from it.
    • Method Detail

      • benchmark

        public static void benchmark​(int runs,
                                     int size,
                                     java.lang.String kind,
                                     boolean print,
                                     int initialCapacity,
                                     double minLoadFactor,
                                     double maxLoadFactor,
                                     double percentNonZero)
        Runs a bench on matrices holding double elements.
      • cubicLoop

        protected static double cubicLoop​(int runs,
                                          int size)
      • main

        public static void main​(java.lang.String[] args)
        Benchmarks various matrix methods.