refactor(性能测试): 请求统计支持排序

This commit is contained in:
Captain.B 2021-06-22 13:11:05 +08:00 committed by 刘瑞斌
parent ce0855bd2e
commit 1360462f61
2 changed files with 28 additions and 14 deletions

View File

@ -2,35 +2,37 @@ package io.metersphere.performance.base;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal;
@Data @Data
public class Statistics { public class Statistics {
private String label; private String label;
private String samples; private BigDecimal samples;
private String fail; private BigDecimal fail;
private String error; private BigDecimal error;
private String average; private BigDecimal average;
private String min; private BigDecimal min;
private String max; private BigDecimal max;
private String median; private BigDecimal median;
private String tp90; private BigDecimal tp90;
private String tp95; private BigDecimal tp95;
private String tp99; private BigDecimal tp99;
private String transactions; private BigDecimal transactions;
private String received; private BigDecimal received;
private String sent; private BigDecimal sent;
} }

View File

@ -39,6 +39,7 @@
<el-table-column <el-table-column
prop="fail" prop="fail"
label="FAIL" label="FAIL"
sortable
align="center" align="center"
min-width="60" min-width="60"
/> />
@ -46,6 +47,7 @@
<el-table-column <el-table-column
prop="error" prop="error"
label="Error%" label="Error%"
sortable
align="center" align="center"
/> />
</el-table-column> </el-table-column>
@ -54,36 +56,43 @@
<el-table-column <el-table-column
prop="average" prop="average"
label="Avg" label="Avg"
sortable
min-width="60" min-width="60"
/> />
<el-table-column <el-table-column
prop="min" prop="min"
label="Min" label="Min"
sortable
min-width="60" min-width="60"
/> />
<el-table-column <el-table-column
prop="max" prop="max"
label="Max" label="Max"
sortable
min-width="60" min-width="60"
/> />
<el-table-column <el-table-column
prop="median" prop="median"
label="Med" label="Med"
sortable
min-width="60" min-width="60"
/> />
<el-table-column <el-table-column
prop="tp90" prop="tp90"
label="90%" label="90%"
sortable
min-width="60" min-width="60"
/> />
<el-table-column <el-table-column
prop="tp95" prop="tp95"
label="95%" label="95%"
sortable
min-width="60" min-width="60"
/> />
<el-table-column <el-table-column
prop="tp99" prop="tp99"
label="99%" label="99%"
sortable
min-width="60" min-width="60"
/> />
</el-table-column> </el-table-column>
@ -92,6 +101,7 @@
<el-table-column <el-table-column
prop="transactions" prop="transactions"
label="Trans/s" label="Trans/s"
sortable
width="100" width="100"
/> />
</el-table-column> </el-table-column>
@ -99,13 +109,15 @@
<el-table-column label="NetWork(KB/sec)" align="center"> <el-table-column label="NetWork(KB/sec)" align="center">
<el-table-column <el-table-column
prop="received" prop="received"
label="Received" label="Recd"
sortable
align="center" align="center"
width="100" width="100"
/> />
<el-table-column <el-table-column
prop="sent" prop="sent"
label="Sent" label="Sent"
sortable
align="center" align="center"
width="100" width="100"
/> />