MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / BenchmarkFileStorage_KeyPath

Function BenchmarkFileStorage_KeyPath

internal/caches/storage_file_test.go:696–707  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

694}
695
696func BenchmarkFileStorage_KeyPath(b *testing.B) {
697 runtime.GOMAXPROCS(1)
698
699 var storage = &FileStorage{
700 options: &serverconfigs.HTTPFileCacheStorage{},
701 policy: &serverconfigs.HTTPCachePolicy{Id: 1},
702 }
703
704 for i := 0; i < b.N; i++ {
705 _, _, _ = storage.keyPath(strconv.Itoa(i))
706 }
707}

Callers

nothing calls this directly

Calls 1

keyPathMethod · 0.80

Tested by

no test coverage detected