suramadu.tests.latency
Class ContextSwitchLatencyTest

java.lang.Object
  extended bysuramadu.tests.latency.ContextSwitchLatencyTest

public class ContextSwitchLatencyTest
extends java.lang.Object

Author:
dan Measure the context switch latency between threads INPUTS:
Property Default Value Description
"iterations" "100"
OUTPUTS: The output contains the maximum, minimum, median, mean, standard deviation and mode statistical measurements on the collected data.

ORIGINS: This test is based upon ideas from the AFRL and the rtpresto suites.

Notes: Uses the Suramadu time native methods to perform timestamping in lieu of RTSJ Time classes


Field Summary
static MemoryType mt
           
static ThreadType tt
          Thread type to use.
 
Constructor Summary
ContextSwitchLatencyTest()
          constructor for test class Instantiates testProperties.
ContextSwitchLatencyTest(suramadu.tests.latency.ContextSwitchLatencyTest.TestProps props)
           
 
Method Summary
 void exit(int code)
           
static void main(java.lang.String[] args)
           
 void parseArguments(java.lang.String[] args)
           
 void run()
          Start the test
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tt

public static ThreadType tt
Thread type to use.


mt

public static MemoryType mt
Constructor Detail

ContextSwitchLatencyTest

public ContextSwitchLatencyTest()
                         throws java.lang.Exception
constructor for test class Instantiates testProperties.

Throws:
java.lang.Throwable
java.lang.IllegalAccessException
java.lang.InstantiationException
java.lang.Exception

ContextSwitchLatencyTest

public ContextSwitchLatencyTest(suramadu.tests.latency.ContextSwitchLatencyTest.TestProps props)
                         throws java.lang.Exception
Method Detail

run

public void run()
Start the test


parseArguments

public void parseArguments(java.lang.String[] args)

exit

public void exit(int code)

main

public static void main(java.lang.String[] args)