MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / BenchmarkNativeJSON

Function BenchmarkNativeJSON

logger/handler_test.go:95–107  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

93}
94
95func BenchmarkNativeJSON(b *testing.B) {
96 testHandler := slog.NewJSONHandler(io.Discard, &slog.HandlerOptions{Level: slog.LevelDebug})
97 testLogger := slog.New(testHandler)
98
99 b.ResetTimer()
100
101 for b.Loop() {
102 testLogger.Info(
103 handlerBenchmarkMsg,
104 handlerBenchmarkAttrs...,
105 )
106 }
107}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected