MCPcopy Index your code
hub / github.com/koding/kite / BenchmarkEtcdGet

Function BenchmarkEtcdGet

kontrol/bench_test.go:79–91  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

77}
78
79func BenchmarkEtcdGet(b *testing.B) {
80 kon.SetStorage(NewEtcd(nil, kon.Kite.Log))
81
82 query := &protocol.KontrolQuery{
83 ID: "b9cc3baf-4f03-47d0-5a62-7de2e9f22476",
84 }
85
86 b.ResetTimer()
87
88 for i := 0; i < b.N; i++ {
89 kon.storage.Get(query)
90 }
91}

Callers

nothing calls this directly

Calls 3

NewEtcdFunction · 0.85
SetStorageMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected