Browse Source

fix the test data file path in benchmarks. (#345)

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
pull/5805/head
Alexey Palazhchenko 6 years ago committed by Krasi Georgiev
parent
commit
9be883670e
  1. 2
      head_test.go
  2. 4
      querier_test.go

2
head_test.go

@ -28,7 +28,7 @@ import (
)
func BenchmarkCreateSeries(b *testing.B) {
lbls, err := labels.ReadLabels("testdata/all.series", b.N)
lbls, err := labels.ReadLabels("testdata/20kseries.json", b.N)
testutil.Ok(b, err)
h, err := NewHead(nil, nil, nil, 10000)

4
querier_test.go

@ -1243,11 +1243,11 @@ func BenchmarkMergedSeriesSet(b *testing.B) {
100,
1000,
10000,
100000,
20000,
} {
for _, j := range []int{1, 2, 4, 8, 16, 32} {
b.Run(fmt.Sprintf("series=%d,blocks=%d", k, j), func(b *testing.B) {
lbls, err := labels.ReadLabels("testdata/1m.series", k)
lbls, err := labels.ReadLabels("testdata/20kseries.json", k)
testutil.Ok(b, err)
sort.Sort(labels.Slice(lbls))

Loading…
Cancel
Save