MCPcopy
hub / github.com/restic/restic / BenchmarkLogIDStr

Function BenchmarkLogIDStr

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

Source from the content-addressed store, hash-verified

14}
15
16func BenchmarkLogIDStr(b *testing.B) {
17 id := restic.NewRandomID()
18
19 b.ResetTimer()
20
21 for i := 0; i < b.N; i++ {
22 debug.Log("id: %v", id)
23 }
24}
25
26func BenchmarkLogIDString(b *testing.B) {
27 id := restic.NewRandomID()

Callers

nothing calls this directly

Calls 2

NewRandomIDFunction · 0.92
LogFunction · 0.92

Tested by

no test coverage detected