public class Calculator extends Object
Constructor and Description |
---|
Calculator() |
Calculator(String label) |
Modifier and Type | Method and Description |
---|---|
void |
addBytes(long newValue)
add received bytes
|
void |
addSample(SampleResult res)
Add details for a sample result, which may consist of multiple samples.
|
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()
Sent 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 |
getSentBytesPerSecond()
Sent bytes / second
|
double |
getSentKBPerSecond()
Sent bytes throughput in kilobytes / second
|
double |
getStandardDeviation() |
long |
getTotalBytes() |
public Calculator()
public Calculator(String label)
public void clear()
public void addSample(SampleResult res)
res
- the sample result; might represent multiple valuespublic void addBytes(long newValue)
newValue
- received bytespublic 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()
public double getSentBytesPerSecond()
public double getSentKBPerSecond()
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.