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

Function BenchmarkLogMemoryBackend

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

Source from the content-addressed store, hash-verified

84}
85
86func BenchmarkLogMemoryBackend(b *testing.B) {
87 backend := SetBackend(NewMemoryBackend(1024))
88 backend.SetLevel(DEBUG, "")
89 RunLogBenchmark(b)
90}
91
92func BenchmarkLogChannelMemoryBackend(b *testing.B) {
93 channelBackend := NewChannelMemoryBackend(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