1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
| {
/* "reason" 表示这是哪种类型的消息。 */
"reason": "benchmark-complete",
/* id 是该基准测试的标识符 */
"id": "norm",
/* 包含该基准测试报告的目录路径 */
"report_directory": "target/criterion/reports/norm",
/* 整数迭代次数列表 */
"iteration_count": [
30,
/* ... */
3000
],
/* 浮点测量值列表(例如时间、CPU 周期),
来自基准测试 */
"measured_values": [
124200.0,
/* ... */
9937100.0
],
/* 与 measured_values 关联的单位。 */
"unit": "ns",
/* 与此基准测试关联的吞吐量值。可用于
计算吞吐量速率,例如每秒字节数或元素数。 */
"throughput": [
{
"per_iteration": 1024,
"unit": "elements"
}
],
/* cargo-criterion 计算的基本统计量的置信区间。 */
/*
"typical" 为斜率(若可用)或均值(若不可用)。它是
函数典型性能的良好通用估计值。
*/
"typical": {
"estimate": 3419.4923993891925,
"lower_bound": 3375.24221103098,
"upper_bound": 3465.458469579234,
"unit": "ns"
},
"mean": {
"estimate": 3419.5340743105917,
"lower_bound": 3374.4765622217083,
"upper_bound": 3474.096214164006,
"unit": "ns"
},
"median": {
"estimate": 3362.8249818445897,
"lower_bound": 3334.259259259259,
"upper_bound": 3387.5146198830407,
"unit": "ns"
},
"median_abs_dev": {
"estimate": 130.7846461816652,
"lower_bound": 96.55619525548211,
"upper_bound": 161.1643711235156,
"unit": "ns"
},
/* 请注意,并非所有基准测试都能测量斜率,因此该字段
可能缺失。 */
"slope": {
"estimate": 3419.4923993891925,
"lower_bound": 3375.24221103098,
"upper_bound": 3465.458469579234,
"unit": "ns"
},
/* "change" 包含有关本次运行与上次运行之间差异的
一些额外统计信息 */
"change": {
/* 均值和中位数值的百分比差异 */
"mean": {
"estimate": 0.014278477848724602,
"lower_bound": -0.01790259435189548,
"upper_bound": 0.03912764721581533,
"unit": "%"
},
"median": {
"estimate": 0.012211662837601445,
"lower_bound": -0.0005448009516478807,
"upper_bound": 0.024243170768727857,
"unit": "%"
},
/*
指示 cargo-criterion 是否检测到统计上显著的变化。
取值为 NoChange、Improved 或 Regressed
*/
"change": "NoChange"
}
}
|