From 9be883670eaf846e8f5bb65ea577dcd7d28d469e Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Thu, 13 Sep 2018 19:34:26 +0300 Subject: [PATCH] fix the test data file path in benchmarks. (#345) Signed-off-by: Alexey Palazhchenko --- head_test.go | 2 +- querier_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/head_test.go b/head_test.go index b06a66c26c..5531f96533 100644 --- a/head_test.go +++ b/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) diff --git a/querier_test.go b/querier_test.go index fd8c7dec51..3515df3ebc 100644 --- a/querier_test.go +++ b/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))