|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.util.Calculator
public class Calculator
Class to calculate various items that don't require all previous results to be saved: - mean = average - standard deviation - minimum - maximum
Constructor Summary | |
---|---|
Calculator()
|
|
Calculator(String label)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Calculator()
public Calculator(String label)
Method Detail |
---|
public void clear()
@Deprecated public void addValue(long newValue)
addSample(SampleResult)
instead
newValue
- 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()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |