Esempio n. 1
0
func BenchmarkDuration(b *testing.B) {
	c := New(ioutil.Discard)

	b.RunParallel(func(p *testing.PB) {
		for p.Next() {
			c.Duration("response.time", time.Second, "program:counters")
		}
	})
}