Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Concurrent int
View Source
var SustainSeconds float64
View Source
var TotalRequest int64
if TotalRequest is set,it has higher priority than SustainSecond
Functions ¶
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
func NewStreamLimiter ¶
type Metrics ¶
type Metrics struct { SustainSeconds float64 Concurrent int QPS float64 // in millisecond MaxDuration float64 MinDuration float64 MedianDuration float64 AverageDuration float64 Percent85Duration float64 Percent95Duration float64 TotalRequest int64 SucceedRequest int64 FailedRequest int64 OnTheFlyRequest int64 }
func FireLoadTest ¶
type Statistic ¶
type Statistic struct { // the total seconds of this statistic SustainSecond float64 // the count of goroutines to run Concurrent int // total request that has been send. TotalRequest int64 // success request number TotalSucceed int64 // failed request number TotalFailed int64 // in millisecond // only record success metrics TotalCostDuration float64 Values []float64 // Request cost duration MinCostDuration float64 MaxCostDuration float64 }
func (*Statistic) CalculateMetrics ¶
func (*Statistic) CollectStatus ¶
func (*Statistic) IncreaseFailed ¶
func (s *Statistic) IncreaseFailed()
func (*Statistic) IncreaseRequest ¶
func (s *Statistic) IncreaseRequest()
func (*Statistic) IncreaseSuccess ¶
func (s *Statistic) IncreaseSuccess()
func (*Statistic) UpdateCostDuration ¶
only update success request data
Click to show internal directories.
Click to hide internal directories.