|
BRUtil - Making Java a Kinder, Gentler, Place to be. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--brutil.MapTestResults
It performs unit timing tests using a HighResTimer upon the get, put, and remove methods. After having gathered timings, there are math utilities to perform basic analysis on the data collected.
| Field Summary | |
static boolean |
FULLOUTPUT
|
static boolean |
OUTPUT
|
| Constructor Summary | |
MapTestResults(Map map,
brutil.timing.HighResTimer timer,
int numElements,
int randomSeed)
Constructs a MapTestResults using the Map, HighResTimer, number of Elements, and specified Random seed |
|
| Method Summary | |
void |
createRandoms()
Initializes the set of testing keys with random data |
void |
createSequential()
Initializes the set of testing keys with sequential data |
void |
doGets(int startIndex,
int endIndex)
Performs timings on the get method of the Map. |
void |
doMath()
Performs basic mathematical analysis on the data collected. |
void |
doPuts(int startIndex,
int endIndex,
java.lang.Object data)
Performs timings on the put method of the Map. |
void |
doRemoves(int startIndex,
int endIndex)
Performs timings on the remove method of the Map. |
void |
initialize()
Performs a put followed by a remove on the Map. |
void |
setMap(Map m)
Resets the MapTestResults to use the specified Map and clears any stored timing data |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean OUTPUT
public static boolean FULLOUTPUT
| Constructor Detail |
public MapTestResults(Map map,
brutil.timing.HighResTimer timer,
int numElements,
int randomSeed)
map - - The Map on which to perform timing teststimer - - the HighResTimer to usenumElements - - the number of Elements in the MaprandomSeed - - the number with which to seed the Random number generator. To use the same set of random numbers,
use the same seed.| Method Detail |
public void initialize()
public void setMap(Map m)
public void createRandoms()
public void createSequential()
public void doPuts(int startIndex,
int endIndex,
java.lang.Object data)
startIndex - - the starting index to be used by the timing testsendIndex - - the ending index to be used by the timing testsdata - - the Object to put into the Map
public void doGets(int startIndex,
int endIndex)
startIndex - - the starting index to be used by the timing testsendIndex - - the ending index to be used by the timing tests
public void doRemoves(int startIndex,
int endIndex)
startIndex - - the starting index to be used by the timing testsendIndex - - the ending index to be used by the timing testspublic void doMath()
public java.lang.String toString()
toString in class java.lang.Object
|
BRUtil - Making Java a Kinder, Gentler, Place to be. |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||