(b *testing.B)
| 36 | } |
| 37 | |
| 38 | func BenchmarkPostgresGet(b *testing.B) { |
| 39 | kon.SetStorage(NewPostgres(nil, kon.Kite.Log)) |
| 40 | |
| 41 | query := &protocol.KontrolQuery{ |
| 42 | ID: "b9cc3baf-4f03-47d0-5a62-7de2e9f22476", |
| 43 | } |
| 44 | |
| 45 | b.ResetTimer() |
| 46 | |
| 47 | for i := 0; i < b.N; i++ { |
| 48 | kon.storage.Get(query) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | func BenchmarkEtcdAdd(b *testing.B) { |
| 53 | kon.SetStorage(NewEtcd(nil, kon.Kite.Log)) |
nothing calls this directly
no test coverage detected