mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-04 22:22:39 -04:00
Update benchmark
Signed-off-by: Jesus Vazquez <jesusvzpg@gmail.com>
This commit is contained in:
parent
a68557dd9c
commit
dafb78cb43
1 changed files with 4 additions and 1 deletions
|
|
@ -107,6 +107,9 @@ func BenchmarkCreateSeries(b *testing.B) {
|
|||
func BenchmarkHeadAppender_Append_Commit_ExistingSeries(b *testing.B) {
|
||||
seriesCounts := []int{100, 1000, 10000}
|
||||
series := genSeries(10000, 10, 0, 0)
|
||||
hints := storage.AppendHints{
|
||||
DiscardOutOfOrder: false,
|
||||
}
|
||||
|
||||
for _, seriesCount := range seriesCounts {
|
||||
b.Run(fmt.Sprintf("%d series", seriesCount), func(b *testing.B) {
|
||||
|
|
@ -122,7 +125,7 @@ func BenchmarkHeadAppender_Append_Commit_ExistingSeries(b *testing.B) {
|
|||
for _, s := range series[:seriesCount] {
|
||||
var ref storage.SeriesRef
|
||||
for sampleIndex := int64(0); sampleIndex < samplesPerAppend; sampleIndex++ {
|
||||
ref, err = app.Append(ref, s.Labels(), ts+sampleIndex, float64(ts+sampleIndex), nil)
|
||||
ref, err = app.Append(ref, s.Labels(), ts+sampleIndex, float64(ts+sampleIndex), &hints)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue