MCPcopy
hub / github.com/restic/restic / BenchmarkLogStatic

Function BenchmarkLogStatic

internal/debug/log_test.go:10–14  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

8)
9
10func BenchmarkLogStatic(b *testing.B) {
11 for i := 0; i < b.N; i++ {
12 debug.Log("Static string")
13 }
14}
15
16func BenchmarkLogIDStr(b *testing.B) {
17 id := restic.NewRandomID()

Callers

nothing calls this directly

Calls 1

LogFunction · 0.92

Tested by

no test coverage detected