com.jamonapi
Class TestClassPerformance
java.lang.Object
com.jamonapi.TestClassPerformance
public class TestClassPerformance
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestClassPerformance
public TestClassPerformance()
- Creates a new instance of TestClassPerformance
TestClassPerformance
public TestClassPerformance(int testIterations)
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