MCPcopy
hub / github.com/prometheus/client_golang / BenchmarkHandler

Function BenchmarkHandler

prometheus/registry_test.go:750–754  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

748}
749
750func BenchmarkHandler(b *testing.B) {
751 for i := 0; i < b.N; i++ {
752 testHandler(b)
753 }
754}
755
756func TestAlreadyRegistered(t *testing.T) {
757 original := prometheus.NewCounterVec(

Callers

nothing calls this directly

Calls 1

testHandlerFunction · 0.85

Tested by

no test coverage detected