Rate of messages in the job per second
()
| 158 | |
| 159 | // Rate of messages in the job per second |
| 160 | func (s *Sample) Rate() int64 { |
| 161 | return int64(float64(s.JobMsgCnt) / s.Duration().Seconds()) |
| 162 | } |
| 163 | |
| 164 | func (s *Sample) String() string { |
| 165 | rate := commaFormat(s.Rate()) |