Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/util/http_loki_test.go

18 lines
376 B

package util
// This file is separated from `http_test.go` to differentiate from the original `http_test.go` file forked from Cortex.
import (
"bytes"
"testing"
)
func BenchmarkDecompressFromBuffer(b *testing.B) {
buf := bytes.Buffer{}
buf.Grow(100)
b.ResetTimer()
for i := 0; i < b.N; i++ {
decompressFromBuffer(&buf, 1000, RawSnappy, nil) //nolint:errcheck
}
}