MCPcopy Create free account
hub / github.com/prometheus/common / BenchmarkJSONMarshallingSamplePairMatrix

Function BenchmarkJSONMarshallingSamplePairMatrix

model/value_float_test.go:300–307  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

298}
299
300func BenchmarkJSONMarshallingSamplePairMatrix(b *testing.B) {
301 for i := 0; i < b.N; i++ {
302 _, err := json.Marshal(samplePairMatrixValue)
303 if err != nil {
304 b.Fatal("error marshalling")
305 }
306 }
307}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected