feat: specify running cycles for load testing.

This commit is contained in:
徐聪
2022-01-12 14:48:43 +08:00
parent b80730d8a4
commit 7a15df3177
4 changed files with 83 additions and 8 deletions
+5
View File
@@ -52,6 +52,11 @@ func (b *Boomer) SetRateLimiter(maxRPS int64, requestIncreaseRate string) {
}
}
// SetLoopCount set loop count for test.
func (b *Boomer) SetLoopCount(loopCount int64) {
b.localRunner.loop = &Loop{loopCount: loopCount}
}
// AddOutput accepts outputs which implements the boomer.Output interface.
func (b *Boomer) AddOutput(o Output) {
b.localRunner.addOutput(o)