mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 21:54:10 -08:00
fix the test data file path in benchmarks. (#345)
Signed-off-by: Alexey Palazhchenko <alexey.palazhchenko@gmail.com>
This commit is contained in:
parent
2945db18ca
commit
9be883670e
|
@ -28,7 +28,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func BenchmarkCreateSeries(b *testing.B) {
|
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)
|
testutil.Ok(b, err)
|
||||||
|
|
||||||
h, err := NewHead(nil, nil, nil, 10000)
|
h, err := NewHead(nil, nil, nil, 10000)
|
||||||
|
|
|
@ -1243,11 +1243,11 @@ func BenchmarkMergedSeriesSet(b *testing.B) {
|
||||||
100,
|
100,
|
||||||
1000,
|
1000,
|
||||||
10000,
|
10000,
|
||||||
100000,
|
20000,
|
||||||
} {
|
} {
|
||||||
for _, j := range []int{1, 2, 4, 8, 16, 32} {
|
for _, j := range []int{1, 2, 4, 8, 16, 32} {
|
||||||
b.Run(fmt.Sprintf("series=%d,blocks=%d", k, j), func(b *testing.B) {
|
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)
|
testutil.Ok(b, err)
|
||||||
|
|
||||||
sort.Sort(labels.Slice(lbls))
|
sort.Sort(labels.Slice(lbls))
|
||||||
|
|
Loading…
Reference in a new issue