|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.splout.db.benchmark.SploutBenchmark
public class SploutBenchmark
Generic benchmark implementation for Splout. Subclasses of SploutBenchmark.StressThreadImpl
must implement specialized SQL business logic.
Nested Class Summary | |
---|---|
static class |
SploutBenchmark.StressThreadImpl
Subclasses of this class can be used for performing arbitrary benchmarks. |
Constructor Summary | |
---|---|
SploutBenchmark()
|
Method Summary | |
---|---|
double |
getAverage()
The average query response time |
int |
getAverageRows()
The average number of rows hit per query |
double |
getGt10()
The frequency of queries above 10 milliseconds |
double |
getGt100()
The frequency of queries above 100 milliseconds |
double |
getGt1000()
The frequency of queries above 1000 milliseconds |
double |
getGt250()
The frequency of queries above 250 milliseconds |
double |
getGt2500()
The frequency of queries above 2500 milliseconds |
double |
getGt50()
The frequency of queries above 50 milliseconds |
double |
getGt500()
The frequency of queries above 500 milliseconds |
double |
getMax()
The maximum query response time |
double |
getMedian()
The median query response time |
double |
getMin()
The minimum query response time |
double |
getPercen90()
The 90 percentil query response time |
double |
getStdev()
The standard deviation of the response time |
long |
getTotalRows()
After performing the benchmark, the total number of rows hit |
void |
printStats(java.io.PrintStream outStream)
|
void |
stressTest(int nThreads,
int nQueries,
java.lang.Class<? extends SploutBenchmark.StressThreadImpl> stressThreadClass,
java.util.Map<java.lang.String,java.lang.Object> context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SploutBenchmark()
Method Detail |
---|
public void stressTest(int nThreads, int nQueries, java.lang.Class<? extends SploutBenchmark.StressThreadImpl> stressThreadClass, java.util.Map<java.lang.String,java.lang.Object> context) throws java.lang.InterruptedException
java.lang.InterruptedException
public void printStats(java.io.PrintStream outStream)
public long getTotalRows()
public int getAverageRows()
public double getAverage()
public double getMax()
public double getMin()
public double getStdev()
public double getMedian()
public double getPercen90()
public double getGt10()
public double getGt50()
public double getGt100()
public double getGt250()
public double getGt500()
public double getGt1000()
public double getGt2500()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |