public class Calculator extends Object
Constructor and Description |
---|
Calculator() |
Calculator(String label) |
Modifier and Type | Method and Description |
---|---|
void |
addBytes(long newValue) |
void |
addSample(SampleResult res)
Add details for a sample result, which may consist of multiple samples.
|
void |
addValue(long newValue)
Deprecated.
Use
addSample(SampleResult) instead |
void |
clear() |
double |
getAvgPageBytes()
calculates the average page size, which means divide the bytes by number
of samples.
|
double |
getBytesPerSecond()
Throughput in bytes / second
|
int |
getCount() |
double |
getErrorPercentage()
Returns the raw double value of the percentage of samples with errors
that were recorded.
|
double |
getKBPerSecond()
Throughput in kilobytes / second
|
String |
getLabel() |
long |
getMax() |
double |
getMean() |
Number |
getMeanAsNumber() |
long |
getMin() |
double |
getRate()
Returns the throughput associated to this sampler in requests per second.
|
double |
getStandardDeviation() |
long |
getTotalBytes() |
public Calculator()
public Calculator(String label)
public void clear()
@Deprecated public void addValue(long newValue)
addSample(SampleResult)
insteadnewValue
- addValue(long, int)
public void addBytes(long newValue)
public void addSample(SampleResult res)
res
- the sample result; might represent multiple valuesaddValue(long, int)
public long getTotalBytes()
public double getMean()
public Number getMeanAsNumber()
public double getStandardDeviation()
public long getMin()
public long getMax()
public int getCount()
public String getLabel()
public double getErrorPercentage()
public double getRate()
public double getAvgPageBytes()
public double getBytesPerSecond()
public double getKBPerSecond()
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.