|
||||||||||
| 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 OperationStatspublic long getTotalRuntime()
OperationStats
getTotalRuntime in interface OperationStatspublic long getTotalErrors()
OperationStats
getTotalErrors in interface OperationStatspublic Map<Integer,List<OperationRun>> getCategorizedErrors()
OperationStats
getCategorizedErrors in interface OperationStatspublic long getActualRuntime()
OperationStats
getActualRuntime in interface OperationStatspublic long getTotalResponseTime()
OperationStats
For non-streaming operations this will likely be equal to
OperationStats.getTotalRuntime()
getTotalResponseTime in interface OperationStatspublic long getAverageRuntime()
OperationStats
getAverageRuntime in interface OperationStatspublic long getAverageResponseTime()
OperationStats
For non-streaming operations this will likely be equal to
OperationStats.getAverageRuntime()
getAverageResponseTime in interface OperationStatspublic double getGeometricAverageRuntime()
OperationStats
getGeometricAverageRuntime in interface OperationStatspublic long getActualAverageRuntime()
OperationStats
getActualAverageRuntime in interface OperationStatspublic long getMinimumRuntime()
OperationStats
getMinimumRuntime in interface OperationStatspublic long getMaximumRuntime()
OperationStats
getMaximumRuntime in interface OperationStatspublic double getVariance()
OperationStats
getVariance in interface OperationStatspublic double getStandardDeviation()
OperationStats
getStandardDeviation in interface OperationStatspublic long getTotalResults()
OperationStats
getTotalResults in interface OperationStatspublic long getAverageResults()
OperationStats
getAverageResults in interface OperationStatspublic double getOperationsPerSecond()
OperationStats
getOperationsPerSecond in interface OperationStatspublic double getActualOperationsPerSecond()
OperationStatsOperationStats.getActualAverageRuntime()
getActualOperationsPerSecond in interface OperationStatspublic double getOperationsPerHour()
OperationStats
getOperationsPerHour in interface OperationStatspublic double getActualOperationsPerHour()
OperationStatsOperationStats.getActualAverageRuntime()
getActualOperationsPerHour in interface OperationStatspublic void clear()
OperationStats
clear in interface OperationStatspublic void trim(int outliers)
OperationStats
trim in interface OperationStatsoutliers - Number of outliers to trimpublic long getRunCount()
OperationStats
getRunCount in interface OperationStatspublic void add(OperationRun run)
OperationStats
add in interface OperationStatsrun - 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 | |||||||||