(b *testing.B)
| 133 | } |
| 134 | |
| 135 | func BenchmarkCounterNoLabels(b *testing.B) { |
| 136 | m := NewCounter(CounterOpts{ |
| 137 | Name: "benchmark_counter", |
| 138 | Help: "A counter to benchmark it.", |
| 139 | }) |
| 140 | b.ReportAllocs() |
| 141 | b.ResetTimer() |
| 142 | for i := 0; i < b.N; i++ { |
| 143 | m.Inc() |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | func BenchmarkGaugeWithLabelValues(b *testing.B) { |
| 148 | m := NewGaugeVec( |
nothing calls this directly
no test coverage detected