(b *testing.B)
| 217 | } |
| 218 | |
| 219 | func BenchmarkHistogramNoLabels(b *testing.B) { |
| 220 | m := NewHistogram(HistogramOpts{ |
| 221 | Name: "benchmark_histogram", |
| 222 | Help: "A histogram to benchmark it.", |
| 223 | }, |
| 224 | ) |
| 225 | b.ReportAllocs() |
| 226 | b.ResetTimer() |
| 227 | for i := 0; i < b.N; i++ { |
| 228 | m.Observe(3.1415) |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | func BenchmarkParallelCounter(b *testing.B) { |
| 233 | c := NewCounter(CounterOpts{ |
nothing calls this directly
no test coverage detected