net.sf.sparql.benchmarking.stats
Interface OperationMixStats

All Known Implementing Classes:
OperationMixStatsImpl

public interface OperationMixStats

Represents statistics for an operation mix

Author:
rvesse

Method Summary
 void add(OperationMixRun run)
          Adds information for the given run to the statistics
 void clear()
          Clears all run statistics
 long getActualAverageRuntime()
          Gets the average actual runtime for the mix over all runs (takes into account parallelization of operations)
 double getActualOperationMixesPerHour()
          Calculates the number of operation mixes per hour that could be executed based on the getActualAverageRuntime()
 long getActualRuntime()
          Gets the actual runtime for the mix over all runs (takes into account queries that run in parallel)
 long getAverageResponseTime()
          Gets the average response time for the mix
 long getAverageRuntime()
          Gets the average runtime for the mix over all runs
 Map<Integer,List<OperationRun>> getCategorizedErrors()
          Gets the information for all errors grouped by category
 double getGeometricAverageRuntime()
          Gets the average runtime for the mix over all runs (geometric mean)
 long getMaximumRuntime()
          Gets the maximum runtime for a mix
 long getMinimumRuntime()
          Gets the minimum runtime for a mix
 double getOperationMixesPerHour()
          Calculates the number of operation mixes per hour that could be executed based on the average runtime of the operation mix
 long getRunCount()
          Gets the number of runs for which information has been recorded
 Iterator<OperationMixRun> getRuns()
          Gets an iterator over the operation mix runs
 double getStandardDeviation()
          Gets the standard deviation in mix runtime
 ParallelTimer getTimer()
          Gets the parallel timer used to track actual runtime
 long getTotalErrors()
          Gets the total number of errors over all runs
 long getTotalOperations()
          Gets the total number of operations run across all mix runs
 long getTotalResponseTime()
          Gets the total response time over all runs
 long getTotalRuntime()
          Gets the total runtime over all runs
 double getVariance()
          Gets the variance in mix runtime
 void trim(int outliers)
          Trims the worst and best N results
 

Method Detail

getRuns

Iterator<OperationMixRun> getRuns()
Gets an iterator over the operation mix runs

Returns:
Mix Runs

getRunCount

long getRunCount()
Gets the number of runs for which information has been recorded

Returns:
Number of runs

add

void add(OperationMixRun run)
Adds information for the given run to the statistics

Parameters:
run - Run information

clear

void clear()
Clears all run statistics


trim

void trim(int outliers)
Trims the worst and best N results

Parameters:
outliers - Number of outliers to trim

getTotalOperations

long getTotalOperations()
Gets the total number of operations run across all mix runs

Returns:
Total operations run

getTotalErrors

long getTotalErrors()
Gets the total number of errors over all runs

Returns:
Total number of errors

getCategorizedErrors

Map<Integer,List<OperationRun>> getCategorizedErrors()
Gets the information for all errors grouped by category

Returns:
Errors grouped by category

getTotalRuntime

long getTotalRuntime()
Gets the total runtime over all runs

Returns:
Total Runtime in nanoseconds

getActualRuntime

long getActualRuntime()
Gets the actual runtime for the mix over all runs (takes into account queries that run in parallel)

Returns:
Actual Runtime in nanoseconds

getTotalResponseTime

long getTotalResponseTime()
Gets the total response time over all runs

Returns:
Total Response Time in nanoseconds

getAverageRuntime

long getAverageRuntime()
Gets the average runtime for the mix over all runs

Returns:
Arithmetic Average Runtime in nanoseconds

getActualAverageRuntime

long getActualAverageRuntime()
Gets the average actual runtime for the mix over all runs (takes into account parallelization of operations)

Returns:
Arithmetic Actual Average Runtime in nanoseconds

getAverageResponseTime

long getAverageResponseTime()
Gets the average response time for the mix

Returns:
Arithmetic Average Response in nanoseconds

getGeometricAverageRuntime

double getGeometricAverageRuntime()
Gets the average runtime for the mix over all runs (geometric mean)

Returns:
Geometric Average Runtime in nanoseconds

getMinimumRuntime

long getMinimumRuntime()
Gets the minimum runtime for a mix

Returns:
Minimum Runtime in nanoseconds

getMaximumRuntime

long getMaximumRuntime()
Gets the maximum runtime for a mix

Returns:
Maximum Runtime in nanoseconds

getVariance

double getVariance()
Gets the variance in mix runtime

Returns:
Runtime Variance in nanoseconds

getStandardDeviation

double getStandardDeviation()
Gets the standard deviation in mix runtime

Returns:
Runtime Standard Deviation in nanoseconds

getOperationMixesPerHour

double getOperationMixesPerHour()
Calculates the number of operation mixes per hour that could be executed based on the average runtime of the operation mix

Returns:
Operation Mixes per Hour

getActualOperationMixesPerHour

double getActualOperationMixesPerHour()
Calculates the number of operation mixes per hour that could be executed based on the getActualAverageRuntime()

Returns:
Operation Mixes per Hour

getTimer

ParallelTimer getTimer()
Gets the parallel timer used to track actual runtime

Returns:
Parallel timer


Copyright © 2014. All Rights Reserved.