storage/remote: document why two benchmarks are skipped

One was silently doing nothing; one was doing something but the work
didn't go up linearly with iteration count.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
Bryan Boreham 2024-01-30 16:48:01 +00:00
parent ae2852be6a
commit b9fdf3dad1
2 changed files with 2 additions and 1 deletions

View file

@ -924,7 +924,7 @@ func BenchmarkSampleSend(b *testing.B) {
func BenchmarkStartup(b *testing.B) {
dir := os.Getenv("WALDIR")
if dir == "" {
return
b.Skip("WALDIR env var not set")
}
// Find the second largest segment; we will replay up to this.

View file

@ -204,6 +204,7 @@ func TestCommitErr(t *testing.T) {
}
func BenchmarkRemoteWriteOOOSamples(b *testing.B) {
b.Skip("Not a valid benchmark (does not count to b.N)")
dir := b.TempDir()
opts := tsdb.DefaultOptions()