|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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)
|
void |
addValue(long newValue)
|
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 |
getPageSize()
Deprecated. use getAvgPageBytes() instead. |
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()
public void addValue(long newValue)
public void addBytes(long newValue)
public void addSample(SampleResult res)
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 getPageSize()
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 |