public class MeasureResult extends Object
MeasureStatistician| 限定符和类型 | 字段和说明 |
|---|---|
protected long |
avg
平均耗时.
|
protected long |
costs
测量代码在执行过程中所消耗的总耗时,单位为纳秒(ns).
|
protected long |
failure
测量过程中执行失败的次数.
|
protected double |
lowerConfidence
95%置信区间下限.
|
protected long |
max
最大耗时.
|
protected long |
min
最小耗时.
|
protected double |
stdDev
标准差.
|
protected long |
success
测量过程中执行成功的次数.
|
protected long |
sum
总耗时.
|
protected double |
throughput
吞吐率,指单位时间内(每秒)的执行总次数,即:
throughput = total / (costs / 10^9). |
protected long |
total
总次数.
|
protected double |
upperConfidence
95%置信区间上限.
|
| 构造器和说明 |
|---|
MeasureResult() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getEasyReadAvg()
获取易于人阅读的每次测量所花费的平均时间总和的字符串.
|
String |
getEasyReadCosts()
获取易于人阅读的实际任务运行总时间字符串.
|
String |
getEasyReadLowerConfidence()
获取易于人阅读的测量所花费时间的 95% 置信区间下界的时间字符串.
|
String |
getEasyReadMax()
获取易于人阅读的测量所花费的最大时间的字符串.
|
String |
getEasyReadMin()
获取易于人阅读的测量所花费的最小时间的字符串.
|
String |
getEasyReadStdDev()
获取易于人阅读的测量所花费的时间标准差的字符串.
|
String |
getEasyReadSum()
获取易于人阅读的每次测量所花费时间总和的字符串.
|
String |
getEasyReadThroughput()
获取易于人阅读的吞吐量字符串.
|
String |
getEasyReadUpperConfidence()
获取易于人阅读的测量所花费时间的 95% 置信区间上界的字符串.
|
String |
toString()
将对象转换为字符串.
|
protected long costs
protected long total
protected long success
protected long failure
protected double throughput
throughput = total / (costs / 10^9).protected long sum
protected long avg
protected long min
protected long max
protected double stdDev
protected double lowerConfidence
protected double upperConfidence
public String getEasyReadCosts()
public String getEasyReadThroughput()
public String getEasyReadSum()
public String getEasyReadAvg()
public String getEasyReadMin()
public String getEasyReadMax()
public String getEasyReadStdDev()
public String getEasyReadLowerConfidence()
public String getEasyReadUpperConfidence()
Copyright © 2020. All rights reserved.