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

Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
This commit is contained in:
Alexey Palazhchenko 2018-09-13 19:34:26 +03:00 committed by Krasi Georgiev
parent 2945db18ca
commit 9be883670e
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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))