|
Apache JMeter 2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.util.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 |
getBytesPerSecond()
Throughput in bytes / second |
int |
getCount()
|
double |
getErrorPercentage()
Returns the raw double value of the percentage of samples with errors that were recorded. |
String |
getErrorPercentageString()
Returns a String which represents the percentage of sample errors that have occurred. ("0.00%" through "100.00%") |
String |
getKBPerSecondString()
formats the Page Size |
String |
getLabel()
|
long |
getMax()
|
double |
getMean()
|
Number |
getMeanAsNumber()
|
long |
getMin()
|
double |
getPageSize()
calculates the average page size, which means divide the bytes by number of samples. |
String |
getPageSizeString()
formats the rate |
double |
getRate()
Returns the throughput associated to this sampler in requests per second. |
String |
getRateString()
Returns a String that represents the throughput associated for this sampler, in units appropriate to its dimension: The number is represented in requests/second or requests/minute or requests/hour. |
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()
getErrorPercentageString()
.
public String getErrorPercentageString()
public double getRate()
public String getRateString()
The number is represented in requests/second or requests/minute or requests/hour.
Examples: "34.2/sec" "0.1/sec" "43.0/hour" "15.9/min"
public double getPageSize()
public String getPageSizeString()
public double getBytesPerSecond()
public String getKBPerSecondString()
|
Apache JMeter 2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |