mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
Add missing InstallCodec
call to benchmark
@bboreham noticed that `BenchmarkRespond` was missing a call to `InstallCodec` in https://github.com/prometheus/prometheus/pull/11905#discussion_r1251255249
This commit is contained in:
parent
31164a7373
commit
5e8b550ad5
|
@ -3293,6 +3293,7 @@ func BenchmarkRespond(b *testing.B) {
|
|||
}
|
||||
b.ResetTimer()
|
||||
api := API{}
|
||||
api.InstallCodec(JSONCodec{})
|
||||
for n := 0; n < b.N; n++ {
|
||||
api.respond(&testResponseWriter, request, response, nil)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue