Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[performance] metrics query: range vector support streaming agg when no overlap #7380

Merged
Prev Previous commit
Next Next commit
trigger ci
  • Loading branch information
liguozhong committed Oct 19, 2022
commit ea9d0b8169fd205297724580cf648d5bd0dc30f0
3 changes: 2 additions & 1 deletion pkg/logql/range_vector_test.go
Original file line number Diff line number Diff line change
@@ -59,14 +59,15 @@ func newPoint(t time.Time, v float64) promql.Point {

func Benchmark_RangeVectorIteratorCompare(b *testing.B) {

// no overlap test case
buildStreamingIt := func() (RangeVectorIterator, error) {
tt := struct {
selRange int64
step int64
offset int64
start, end time.Time
}{
(5 * time.Second).Nanoseconds(), // no overlap
(5 * time.Second).Nanoseconds(),
(30 * time.Second).Nanoseconds(),
0,
time.Unix(10, 0),