MCPcopy
hub / github.com/op/go-logging / BenchmarkLogMemoryBackendIgnored

Function BenchmarkLogMemoryBackendIgnored

log_test.go:80–84  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

78}
79
80func BenchmarkLogMemoryBackendIgnored(b *testing.B) {
81 backend := SetBackend(NewMemoryBackend(1024))
82 backend.SetLevel(INFO, "")
83 RunLogBenchmark(b)
84}
85
86func BenchmarkLogMemoryBackend(b *testing.B) {
87 backend := SetBackend(NewMemoryBackend(1024))

Callers

nothing calls this directly

Calls 4

SetBackendFunction · 0.85
NewMemoryBackendFunction · 0.85
RunLogBenchmarkFunction · 0.85
SetLevelMethod · 0.65

Tested by

no test coverage detected