refactor(性能测试): 去掉线程组最小的限制
This commit is contained in:
parent
ac1bfb2ca4
commit
df7c576697
|
@ -66,7 +66,7 @@
|
|||
:disabled="isReadOnly"
|
||||
v-model="threadGroup.threadNumber"
|
||||
@change="calculateTotalChart()"
|
||||
:min="resourcePoolResourceLength"
|
||||
:min="1"
|
||||
:max="maxThreadNumbers"
|
||||
size="mini"/>
|
||||
</el-form-item>
|
||||
|
@ -246,7 +246,6 @@ export default {
|
|||
resourcePools: [],
|
||||
activeNames: ["0"],
|
||||
threadGroups: [],
|
||||
resourcePoolResourceLength: 1,
|
||||
maxThreadNumbers: 5000,
|
||||
serializeThreadGroups: false,
|
||||
autoStop: false,
|
||||
|
@ -404,11 +403,6 @@ export default {
|
|||
if (handler.rampUpTime < handler.step) {
|
||||
handler.step = handler.rampUpTime;
|
||||
}
|
||||
// 线程数不能小于资源池节点的数量
|
||||
let resourcePool = this.resourcePools.filter(v => v.id === this.resourcePool)[0];
|
||||
if (resourcePool) {
|
||||
this.resourcePoolResourceLength = resourcePool.resources.length;
|
||||
}
|
||||
let color = ['#60acfc', '#32d3eb', '#5bc49f', '#feb64d', '#ff7c7c', '#9287e7', '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3'];
|
||||
handler.options = {
|
||||
color: color,
|
||||
|
@ -529,11 +523,7 @@ export default {
|
|||
if (handler.rampUpTime < handler.step) {
|
||||
handler.step = handler.rampUpTime;
|
||||
}
|
||||
// 线程数不能小于资源池节点的数量
|
||||
let resourcePool = this.resourcePools.filter(v => v.id === this.resourcePool)[0];
|
||||
if (resourcePool) {
|
||||
this.resourcePoolResourceLength = resourcePool.resources.length;
|
||||
}
|
||||
|
||||
handler.options = {
|
||||
xAxis: {
|
||||
type: 'category',
|
||||
|
|
Loading…
Reference in New Issue