com.jamonapi
Class TestClassPerformance

java.lang.Object
  extended by com.jamonapi.TestClassPerformance

public class TestClassPerformance
extends java.lang.Object

Class used to test performance of JAMon. It is only used for testing purposes.

Author:
steve souza

Constructor Summary
TestClassPerformance()
          Creates a new instance of TestClassPerformance
TestClassPerformance(int testIterations)
           
 
Method Summary
 void addMonitor()
           
 void basicTimingMonitor()
           
 void factoryBasicMonitor()
           
 void factoryMonitor()
           
static void main(java.lang.String[] args)
          Test class for performance numbers of JAMon.
 void nullMonitor()
           
 void nullMonitor2()
           
 void timingNoMonitor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestClassPerformance

public TestClassPerformance()
Creates a new instance of TestClassPerformance


TestClassPerformance

public TestClassPerformance(int testIterations)
Method Detail

timingNoMonitor

public void timingNoMonitor()
                     throws java.lang.Exception
Throws:
java.lang.Exception

basicTimingMonitor

public void basicTimingMonitor()
                        throws java.lang.Exception
Throws:
java.lang.Exception

nullMonitor

public void nullMonitor()
                 throws java.lang.Exception
Throws:
java.lang.Exception

nullMonitor2

public void nullMonitor2()
                  throws java.lang.Exception
Throws:
java.lang.Exception

factoryBasicMonitor

public void factoryBasicMonitor()
                         throws java.lang.Exception
Throws:
java.lang.Exception

factoryMonitor

public void factoryMonitor()
                    throws java.lang.Exception
Throws:
java.lang.Exception

addMonitor

public void addMonitor()
                throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Test class for performance numbers of JAMon. You can execute the test code in the following 2 ways: To execute with the default number of iterations (currently 100,000). This takes about .5 seconds on my Pentium IV. java -cp JAMon.jar com.jamonapi.TestClassPerformance To execute with a different number of iterations pass the number after the class name. java -cp JAMon.jar com.jamonapi.TestClassPerformance 500000

Throws:
java.lang.Exception