(t *testing.B)
| 774 | } |
| 775 | |
| 776 | func BenchmarkOneBigTimer(t *testing.B) { |
| 777 | r := rand.New(rand.NewSource(438)) |
| 778 | bucket := "response_time" |
| 779 | for i := 0; i < 10000000; i++ { |
| 780 | a := float64(r.Uint32() % 1000) |
| 781 | timers[bucket] = append(timers[bucket], a) |
| 782 | } |
| 783 | |
| 784 | var buff bytes.Buffer |
| 785 | t.ResetTimer() |
| 786 | processTimers(&buff, time.Now().Unix(), commonPercentiles) |
| 787 | } |
| 788 | |
| 789 | func BenchmarkLotsOfTimers(t *testing.B) { |
| 790 | r := rand.New(rand.NewSource(438)) |
nothing calls this directly
no test coverage detected