|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.sparql.benchmarking.stats.impl.OperationStatsImpl
public class OperationStatsImpl
Basic implementation of operation statistics interface
Constructor Summary | |
---|---|
OperationStatsImpl()
|
Method Summary | |
---|---|
void |
add(OperationRun run)
Adds information for the given run to the statistics |
void |
clear()
Clears all run statistics |
long |
getActualAverageRuntime()
Gets average runtime for the operation over all runs (arithmetic mean) based on the actual runtime |
double |
getActualOperationsPerHour()
Calculates how many times this operation could be executed multi-threaded per hour based upon the OperationStats.getActualAverageRuntime() |
double |
getActualOperationsPerSecond()
Calculates how many times this operation could be executed multi-threaded per second based upon the OperationStats.getActualAverageRuntime() |
long |
getActualRuntime()
Gets the actual runtime for the operation over all runs (takes into account operations that run in parallel) |
long |
getAverageResponseTime()
Gets the average response time over all runs (arithmetic mean) based on the total response time |
long |
getAverageResults()
Gets the average number of results |
long |
getAverageRuntime()
Gets the average runtime for the operation over all runs (arithmetic mean) based on the total runtime |
Map<Integer,List<OperationRun>> |
getCategorizedErrors()
Gets the information for all errors grouped by category |
double |
getGeometricAverageRuntime()
Gets the average runtime for the operation over all runs (geometric mean) based on the total runtime |
long |
getMaximumRuntime()
Gets the maximum runtime for this operation over all runs |
long |
getMinimumRuntime()
Gets the minimum runtime for this operation over all runs |
double |
getOperationsPerHour()
Calculates how many times this operation could be executed single-threaded per hour based upon the average runtime of the operation |
double |
getOperationsPerSecond()
Calculates how many times this operation could be executed single-threaded per second based upon the average runtime of the operation |
long |
getRunCount()
Gets the number of runs for the operation |
Iterator<OperationRun> |
getRuns()
Gets an iterator over the operation runs |
double |
getStandardDeviation()
Gets the standard deviation for operation runtime |
ParallelTimer |
getTimer()
Gets the parallel timer used to track actual runtime |
long |
getTotalErrors()
Gets the total number of times this operation resulted in an error |
long |
getTotalResponseTime()
Gets the total response time for the operations over all runs |
long |
getTotalResults()
Gets the total number of results for this operation |
long |
getTotalRuntime()
Gets the total runtime for the query over all runs |
double |
getVariance()
Gets the variance for the operation runtimes |
void |
trim(int outliers)
Trims the best and worst N runs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OperationStatsImpl()
Method Detail |
---|
public Iterator<OperationRun> getRuns()
OperationStats
getRuns
in interface OperationStats
public long getTotalRuntime()
OperationStats
getTotalRuntime
in interface OperationStats
public long getTotalErrors()
OperationStats
getTotalErrors
in interface OperationStats
public Map<Integer,List<OperationRun>> getCategorizedErrors()
OperationStats
getCategorizedErrors
in interface OperationStats
public long getActualRuntime()
OperationStats
getActualRuntime
in interface OperationStats
public long getTotalResponseTime()
OperationStats
For non-streaming operations this will likely be equal to
OperationStats.getTotalRuntime()
getTotalResponseTime
in interface OperationStats
public long getAverageRuntime()
OperationStats
getAverageRuntime
in interface OperationStats
public long getAverageResponseTime()
OperationStats
For non-streaming operations this will likely be equal to
OperationStats.getAverageRuntime()
getAverageResponseTime
in interface OperationStats
public double getGeometricAverageRuntime()
OperationStats
getGeometricAverageRuntime
in interface OperationStats
public long getActualAverageRuntime()
OperationStats
getActualAverageRuntime
in interface OperationStats
public long getMinimumRuntime()
OperationStats
getMinimumRuntime
in interface OperationStats
public long getMaximumRuntime()
OperationStats
getMaximumRuntime
in interface OperationStats
public double getVariance()
OperationStats
getVariance
in interface OperationStats
public double getStandardDeviation()
OperationStats
getStandardDeviation
in interface OperationStats
public long getTotalResults()
OperationStats
getTotalResults
in interface OperationStats
public long getAverageResults()
OperationStats
getAverageResults
in interface OperationStats
public double getOperationsPerSecond()
OperationStats
getOperationsPerSecond
in interface OperationStats
public double getActualOperationsPerSecond()
OperationStats
OperationStats.getActualAverageRuntime()
getActualOperationsPerSecond
in interface OperationStats
public double getOperationsPerHour()
OperationStats
getOperationsPerHour
in interface OperationStats
public double getActualOperationsPerHour()
OperationStats
OperationStats.getActualAverageRuntime()
getActualOperationsPerHour
in interface OperationStats
public void clear()
OperationStats
clear
in interface OperationStats
public void trim(int outliers)
OperationStats
trim
in interface OperationStats
outliers
- Number of outliers to trimpublic long getRunCount()
OperationStats
getRunCount
in interface OperationStats
public void add(OperationRun run)
OperationStats
add
in interface OperationStats
run
- Run informationpublic ParallelTimer getTimer()
OperationStats
getTimer
in interface OperationStats
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |