Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Do not use syncPool for chunks when querying #427

Closed

Conversation

csmarchbanks
Copy link
Contributor

The only time any chunks are currently put into the syncPool is during a
compaction. This means that during almost all normal operation a new
chunk is still being created, along with the extra overhead of going
through the syncPool Get process.

This keeps the pool as an optional argument so as to not change the behavior of the compactor.

Noticed while working on #236

When using the benchmarks from #425 we save a couple percent:

benchmark                                                          old ns/op     new ns/op     delta
BenchmarkPersistedQueries/series=10,samplesPerSeries=1000-8        807042        786265        -2.57%
BenchmarkPersistedQueries/series=10,samplesPerSeries=10000-8       7577470       7408384       -2.23%
BenchmarkPersistedQueries/series=10,samplesPerSeries=100000-8      75991905      75216135      -1.02%
BenchmarkPersistedQueries/series=100,samplesPerSeries=1000-8       7922229       7720921       -2.54%
BenchmarkPersistedQueries/series=100,samplesPerSeries=10000-8      76134169      74943460      -1.56%
BenchmarkPersistedQueries/series=100,samplesPerSeries=100000-8     782505185     763625329     -2.41%

And if we remove the it.Next() loop (focus only on chunk creation, not decoding) then we get:

benchmark                                                          old ns/op     new ns/op     delta
BenchmarkPersistedQueries/series=10,samplesPerSeries=1000-8        77687         57715         -25.71%
BenchmarkPersistedQueries/series=10,samplesPerSeries=10000-8       381082        188439        -50.55%
BenchmarkPersistedQueries/series=10,samplesPerSeries=100000-8      3467434       1542752       -55.51%
BenchmarkPersistedQueries/series=100,samplesPerSeries=1000-8       678544        477437        -29.64%
BenchmarkPersistedQueries/series=100,samplesPerSeries=10000-8      3814757       1870530       -50.97%
BenchmarkPersistedQueries/series=100,samplesPerSeries=100000-8     41222896      21328618      -48.26%

Signed-off-by: Chris Marchbanks [email protected]

db.go Outdated
@@ -521,7 +519,7 @@ func (db *DB) reload() (err error) {
// See if we already have the block in memory or open it otherwise.
b, ok := db.getBlock(meta.ULID)
if !ok {
b, err = OpenBlock(dir, db.chunkPool)
b, err = OpenBlock(dir, nil)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure this doesn't increase allocations?

if you pass the same pool to OpenBlock() it should help?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could have been a bit more clear, this issue is not an allocation issue, but just an optimization to avoid the overhead of using a sync.Pool. Since we never put anything into the pool except during a compaction, the pool is almost always empty so we have to allocate a new chunk anyway.

I could look into trying to add chunks back to the pool, but it is hard to know exactly when we would be able to. Perhaps when a querier is closed?

Copy link
Contributor

@krasi-georgiev krasi-georgiev Nov 1, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after a compactoin we put back in the Pool and right after that we reload the db which calls OpenBlock so if these share the same pool should reduce allocations, no?

Maybe a dedicated benchmark would answer the question.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will do some work looking at testing with a dedicated pool today.

Having the pool will likely help allocations a bit right after a compaction, either until the first garbage collection (see golang/go#22950), or enough queries have run such that the pool is drained. But in reality, the only allocation that will be saved is the struct (the buffer is replaced after a Get), so it would be a tiny amount of allocations saved.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried using a combined pool, and it didn't seem to help with allocations at all. I would like to try a few more things, to make sure I am actually testing what I think I am. I will report back soon!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some more benchmarking, and it really seems like the overhead of syncPool is more expensive than any caching gains for the small amount of time around a compaction. I went as far as having the querier return chunks to the pool when it was done with them, but it was still slower.

It looks like the syncPool was originally implemented to reduce spikes when compacting, and that path will still use a pool (#118).

Since it's only a couple percent gain for retrieving and iterating through a chunk, I understand if it feels a bit risky to merge though!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this code be added to any of the test files so I can have a look?

Copy link
Contributor Author

@csmarchbanks csmarchbanks Nov 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed two new commits, one doing the shared pool, one allowing a reader to pass chunks back to the pool. I fixed one small issue with the reader writing to the pool, and it looks like writing to the pool will slow the queries down a bit, but also reduce allocations significantly. I am not sure which is better overall...:

benchcmp with_pool.txt without_pool.txt
benchmark                                                          old ns/op      new ns/op      delta
BenchmarkPersistedQueries/series=10,samplesPerSeries=1000-8        1188273        1137934        -4.24%
BenchmarkPersistedQueries/series=10,samplesPerSeries=10000-8       11466663       10678957       -6.87%
BenchmarkPersistedQueries/series=10,samplesPerSeries=100000-8      114114078      107062847      -6.18%
BenchmarkPersistedQueries/series=100,samplesPerSeries=1000-8       11005831       10901434       -0.95%
BenchmarkPersistedQueries/series=100,samplesPerSeries=10000-8      108194015      112203305      +3.71%
BenchmarkPersistedQueries/series=100,samplesPerSeries=100000-8     1191467654     1167810755     -1.99%

benchmark                                                          old allocs     new allocs     delta
BenchmarkPersistedQueries/series=10,samplesPerSeries=1000-8        358            520            +45.25%
BenchmarkPersistedQueries/series=10,samplesPerSeries=10000-8       2037           3563           +74.91%
BenchmarkPersistedQueries/series=10,samplesPerSeries=100000-8      18999          34092          +79.44%
BenchmarkPersistedQueries/series=100,samplesPerSeries=1000-8       2807           4587           +63.41%
BenchmarkPersistedQueries/series=100,samplesPerSeries=10000-8      18202          34996          +92.26%
BenchmarkPersistedQueries/series=100,samplesPerSeries=100000-8     174065         340264         +95.48%

benchmark                                                          old bytes     new bytes     delta
BenchmarkPersistedQueries/series=10,samplesPerSeries=1000-8        64981         68153         +4.88%
BenchmarkPersistedQueries/series=10,samplesPerSeries=10000-8       181887        212317        +16.73%
BenchmarkPersistedQueries/series=10,samplesPerSeries=100000-8      1415349       1713858       +21.09%
BenchmarkPersistedQueries/series=100,samplesPerSeries=1000-8       269631        305181        +13.18%
BenchmarkPersistedQueries/series=100,samplesPerSeries=10000-8      1327456       1662354       +25.23%
BenchmarkPersistedQueries/series=100,samplesPerSeries=100000-8     12651272      15943688      +26.02%

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, here's the result of current master, compared to adding a put to the Pool in the Reader:

benchcmp original.txt with_pool.txt
benchmark                                                          old ns/op      new ns/op      delta
BenchmarkPersistedQueries/series=10,samplesPerSeries=1000-8        1100883        1112310        +1.04%
BenchmarkPersistedQueries/series=10,samplesPerSeries=10000-8       10623663       10533229       -0.85%
BenchmarkPersistedQueries/series=10,samplesPerSeries=100000-8      105319888      106529656      +1.15%
BenchmarkPersistedQueries/series=100,samplesPerSeries=1000-8       10772258       10645391       -1.18%
BenchmarkPersistedQueries/series=100,samplesPerSeries=10000-8      105563054      105657945      +0.09%
BenchmarkPersistedQueries/series=100,samplesPerSeries=100000-8     1128303811     1103207237     -2.22%

benchmark                                                          old allocs     new allocs     delta
BenchmarkPersistedQueries/series=10,samplesPerSeries=1000-8        520            358            -31.15%
BenchmarkPersistedQueries/series=10,samplesPerSeries=10000-8       3563           2037           -42.83%
BenchmarkPersistedQueries/series=10,samplesPerSeries=100000-8      34092          18999          -44.27%
BenchmarkPersistedQueries/series=100,samplesPerSeries=1000-8       4587           2806           -38.83%
BenchmarkPersistedQueries/series=100,samplesPerSeries=10000-8      34997          18256          -47.84%
BenchmarkPersistedQueries/series=100,samplesPerSeries=100000-8     340262         179192         -47.34%

benchmark                                                          old bytes     new bytes     delta
BenchmarkPersistedQueries/series=10,samplesPerSeries=1000-8        68170         64940         -4.74%
BenchmarkPersistedQueries/series=10,samplesPerSeries=10000-8       212348        181887        -14.34%
BenchmarkPersistedQueries/series=10,samplesPerSeries=100000-8      1713962       1415349       -17.42%
BenchmarkPersistedQueries/series=100,samplesPerSeries=1000-8       305244        269624        -11.67%
BenchmarkPersistedQueries/series=100,samplesPerSeries=10000-8      1662664       1330012       -20.01%
BenchmarkPersistedQueries/series=100,samplesPerSeries=100000-8     15942680      12854432      -19.37%

The only time any chunks are currently put into the syncPool is during a
compaction. This means that during almost all normal operation a new
chunk is still being created, along with the extra overhead of going
through the syncPool Get process.

Signed-off-by: Chris Marchbanks <[email protected]>
@csmarchbanks csmarchbanks force-pushed the no-query-pool branch 2 times, most recently from b009912 to c28c3db Compare November 14, 2018 20:33
@@ -603,6 +603,10 @@ func (s *populatedChunkSeries) Next() bool {
continue
}

for _, chk := range s.chks {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we choose that implementing writing to the pool on queries is the best way to go, would there be any concern about doing this at the beginning of the Next() block? Then they can be used right away.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah , I have been looking at this for the past 2 days and although it is an awkward place to put it couldn't find a better way to structure the code.

@krasi-georgiev
Copy link
Contributor

krasi-georgiev commented Dec 5, 2018

started a benchmark to check the gains it at high load
prometheus/prometheus#4962

@krasi-georgiev
Copy link
Contributor

@csmarchbanks trying to ping you on IRC to syn on this.

@csmarchbanks
Copy link
Contributor Author

I am at KubeCon this week. I will check in on IRC when i get a chance.

@csmarchbanks
Copy link
Contributor Author

Results of promql benchmarks:

benchmark                                                                                                             old ns/op      new ns/op      delta
BenchmarkRangeQuery/expr=a_one,steps=1-4                                                                              20281          19789          -2.43%
BenchmarkRangeQuery/expr=a_one,steps=10-4                                                                             20909          19977          -4.46%
BenchmarkRangeQuery/expr=a_one,steps=100-4                                                                            27545          27506          -0.14%
BenchmarkRangeQuery/expr=a_one,steps=1000-4                                                                           91902          93073          +1.27%
BenchmarkRangeQuery/expr=a_ten,steps=1-4                                                                              82594          85832          +3.92%
BenchmarkRangeQuery/expr=a_ten,steps=10-4                                                                             85336          85363          +0.03%
BenchmarkRangeQuery/expr=a_ten,steps=100-4                                                                            156013         156167         +0.10%
BenchmarkRangeQuery/expr=a_ten,steps=1000-4                                                                           750001         737922         -1.61%
BenchmarkRangeQuery/expr=a_hundred,steps=1-4                                                                          722180         712345         -1.36%
BenchmarkRangeQuery/expr=a_hundred,steps=10-4                                                                         726530         720017         -0.90%
BenchmarkRangeQuery/expr=a_hundred,steps=100-4                                                                        1453659        1402699        -3.51%
BenchmarkRangeQuery/expr=a_hundred,steps=1000-4                                                                       7474817        7142547        -4.45%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=1-4                                                                    26479          26554          +0.28%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=10-4                                                                   27255          27052          -0.74%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=100-4                                                                  44795          43905          -1.99%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=1000-4                                                                 179728         177915         -1.01%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=1-4                                                                    97023          97742          +0.74%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=10-4                                                                   104369         105368         +0.96%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=100-4                                                                  272328         277905         +2.05%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=1000-4                                                                 1573604        1542411        -1.98%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=1-4                                                                844297         828884         -1.83%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=10-4                                                               909348         905053         -0.47%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=100-4                                                              2437848        2364290        -3.02%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=1000-4                                                             15436417       14736048       -4.54%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=10000-4                                                                1627209        1580532        -2.87%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=1-4                                                  984233         982967         -0.13%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=10-4                                                 1493768        1500798        +0.47%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=100-4                                                7055180        6539972        -7.30%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=1000-4                                               62290127       56699422       -8.98%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=1-4                                                  7120073        6965394        -2.17%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=10-4                                                 12736240       11978701       -5.95%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=100-4                                                70068831       61893458       -11.67%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=1000-4                                               608929942      568155385      -6.70%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=1-4                                              69020671       67410638       -2.33%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=10-4                                             137341693      116824615      -14.94%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=100-4                                            662860167      621487697      -6.24%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=1000-4                                           6014163406     5653364109     -6.00%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=1-4                                                                 818509         791261         -3.33%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=10-4                                                                956269         972546         +1.70%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=100-4                                                               2432807        2779940        +14.27%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=1000-4                                                              17560289       21023055       +19.72%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=1-4                                                                 6115198        5981073        -2.19%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=10-4                                                                7599582        7873645        +3.61%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=100-4                                                               22265135       26054529       +17.02%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=1000-4                                                              169939013      208174582      +22.50%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=1-4                                                             60943394       59257210       -2.77%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=10-4                                                            76096495       77777998       +2.21%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=100-4                                                           222767601      260934534      +17.13%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=1000-4                                                          1708321160     2075568238     +21.50%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=1-4                                                                    799779         771751         -3.50%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=10-4                                                                   866910         865589         -0.15%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=100-4                                                                  1761790        1799385        +2.13%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=1000-4                                                                 10250762       10923610       +6.56%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=1-4                                                                    5991192        5833034        -2.64%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=10-4                                                                   6839318        6673881        -2.42%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=100-4                                                                  15349460       15865608       +3.36%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=1000-4                                                                 96806058       107417966      +10.96%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=1-4                                                                60484520       57793673       -4.45%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=10-4                                                               67420494       66817803       -0.89%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=100-4                                                              153257860      158348889      +3.32%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=1000-4                                                             973093143      1073376839     +10.31%
BenchmarkRangeQuery/expr=-a_one,steps=1-4                                                                             23492          22965          -2.24%
BenchmarkRangeQuery/expr=-a_one,steps=10-4                                                                            23172          23309          +0.59%
BenchmarkRangeQuery/expr=-a_one,steps=100-4                                                                           30212          29952          -0.86%
BenchmarkRangeQuery/expr=-a_one,steps=1000-4                                                                          97873          94745          -3.20%
BenchmarkRangeQuery/expr=-a_ten,steps=1-4                                                                             91237          88915          -2.55%
BenchmarkRangeQuery/expr=-a_ten,steps=10-4                                                                            93330          89744          -3.84%
BenchmarkRangeQuery/expr=-a_ten,steps=100-4                                                                           165839         163654         -1.32%
BenchmarkRangeQuery/expr=-a_ten,steps=1000-4                                                                          794324         735941         -7.35%
BenchmarkRangeQuery/expr=-a_hundred,steps=1-4                                                                         762791         738807         -3.14%
BenchmarkRangeQuery/expr=-a_hundred,steps=10-4                                                                        781680         760912         -2.66%
BenchmarkRangeQuery/expr=-a_hundred,steps=100-4                                                                       1543534        1470405        -4.74%
BenchmarkRangeQuery/expr=-a_hundred,steps=1000-4                                                                      7566888        7507028        -0.79%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=1-4                                                                      38834          37729          -2.85%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=10-4                                                                     44355          43238          -2.52%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=100-4                                                                    122334         117468         -3.98%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=1000-4                                                                   875395         817757         -6.58%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=1-4                                                                      201779         183602         -9.01%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=10-4                                                                     245855         234240         -4.72%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=100-4                                                                    904664         876541         -3.11%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=1000-4                                                                   7149383        6901341        -3.47%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=1-4                                                              1735501        1682093        -3.08%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=10-4                                                             2317435        2248205        -2.99%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=100-4                                                            9222119        9094203        -1.39%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=1000-4                                                           79840076       75631924       -5.27%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=10000-4                                                                  7814961        7674508        -1.80%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=1-4                                                     136394         117237         -14.05%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=10-4                                                    158431         120938         -23.67%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=100-4                                                   187403         155335         -17.11%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=1000-4                                                  556449         466422         -16.18%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=1-4                                                     300079         234865         -21.73%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=10-4                                                    351098         276558         -21.23%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=100-4                                                   671380         603499         -10.11%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=1000-4                                                  3640929        3613129        -0.76%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=1-4                                             1390400        1341526        -3.52%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=10-4                                            1770231        1632087        -7.80%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=100-4                                           5766364        5178335        -10.20%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=1000-4                                          44055655       40514024       -8.04%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=1-4                                                      153879         120855         -21.46%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=10-4                                                     155464         125061         -19.56%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=100-4                                                    234769         181216         -22.81%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=1000-4                                                   739278         641536         -13.22%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=1-4                                                      301155         242478         -19.48%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=10-4                                                     370152         286509         -22.60%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=100-4                                                    957670         741079         -22.62%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=1000-4                                                   5630522        4928022        -12.48%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=1-4                                              1722575        1352631        -21.48%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=10-4                                             2151703        1752790        -18.54%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=100-4                                            7413774        6565114        -11.45%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=1000-4                                           63843772       53478297       -16.24%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=1-4                                                  198273         121315         -38.81%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=10-4                                                 185580         127200         -31.46%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=100-4                                                256993         175663         -31.65%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=1000-4                                               752791         620880         -17.52%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=1-4                                                  316572         239394         -24.38%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=10-4                                                 343128         266319         -22.38%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=100-4                                                722004         595300         -17.55%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=1000-4                                               3838953        3586855        -6.57%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=1-4                                          1521930        1308880        -14.00%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=10-4                                         1831240        1581895        -13.62%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=100-4                                        5765133        5212226        -9.59%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=1000-4                                       47442414       40675768       -14.26%
BenchmarkRangeQuery/expr=abs(a_one),steps=1-4                                                                         39305          26148          -33.47%
BenchmarkRangeQuery/expr=abs(a_one),steps=10-4                                                                        38875          27943          -28.12%
BenchmarkRangeQuery/expr=abs(a_one),steps=100-4                                                                       79919          60590          -24.19%
BenchmarkRangeQuery/expr=abs(a_one),steps=1000-4                                                                      411899         347478         -15.64%
BenchmarkRangeQuery/expr=abs(a_ten),steps=1-4                                                                         136711         103008         -24.65%
BenchmarkRangeQuery/expr=abs(a_ten),steps=10-4                                                                        155944         128301         -17.73%
BenchmarkRangeQuery/expr=abs(a_ten),steps=100-4                                                                       492307         449500         -8.70%
BenchmarkRangeQuery/expr=abs(a_ten),steps=1000-4                                                                      3710087        3349274        -9.73%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=1-4                                                                     1023720        859451         -16.05%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=10-4                                                                    1346727        1131329        -15.99%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=100-4                                                                   4651007        4286156        -7.84%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=1000-4                                                                  37614779       35423739       -5.82%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=1-4                                      51968          42025          -19.13%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=10-4                                     61009          46533          -23.73%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=100-4                                    118613         98676          -16.81%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=1000-4                                   790852         576094         -27.16%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=1-4                                      154628         124460         -19.51%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=10-4                                     193194         154653         -19.95%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=100-4                                    668033         515804         -22.79%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=1000-4                                   4548301        3794964        -16.56%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=1-4                                  1156296        939049         -18.79%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=10-4                                 1555306        1223103        -21.36%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=100-4                                5115101        4632448        -9.44%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=1000-4                               40853481       38327189       -6.18%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=1-4                                             40703          35722          -12.24%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=10-4                                            54622          40468          -25.91%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=100-4                                           132783         106768         -19.59%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=1000-4                                          916017         702333         -23.33%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=1-4                                             142267         113690         -20.09%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=10-4                                            178965         145279         -18.82%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=100-4                                           609113         521504         -14.38%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=1000-4                                          4759709        3964278        -16.71%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=1-4                                         1089209        902468         -17.14%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=10-4                                        1408854        1192557        -15.35%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=100-4                                       5216884        4795931        -8.07%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=1000-4                                      41994435       40117141       -4.47%
BenchmarkRangeQuery/expr=sum(a_one),steps=1-4                                                                         34850          26035          -25.29%
BenchmarkRangeQuery/expr=sum(a_one),steps=10-4                                                                        44339          30058          -32.21%
BenchmarkRangeQuery/expr=sum(a_one),steps=100-4                                                                       104739         83994          -19.81%
BenchmarkRangeQuery/expr=sum(a_one),steps=1000-4                                                                      769780         584444         -24.08%
BenchmarkRangeQuery/expr=sum(a_ten),steps=1-4                                                                         108983         89558          -17.82%
BenchmarkRangeQuery/expr=sum(a_ten),steps=10-4                                                                        119495         99043          -17.12%
BenchmarkRangeQuery/expr=sum(a_ten),steps=100-4                                                                       301809         265429         -12.05%
BenchmarkRangeQuery/expr=sum(a_ten),steps=1000-4                                                                      1969267        1625942        -17.43%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=1-4                                                                     883420         722764         -18.19%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=10-4                                                                    970677         783016         -19.33%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=100-4                                                                   2224672        1913973        -13.97%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=1000-4                                                                  13262465       12518437       -5.61%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=1-4                                                             147501         117184         -20.55%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=10-4                                                            242849         201108         -17.19%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=100-4                                                           1345119        1064295        -20.88%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=1000-4                                                          11061159       9309562        -15.84%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=1-4                                                             993609         816323         -17.84%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=10-4                                                            1156851        973372         -15.86%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=100-4                                                           3685846        3322747        -9.85%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=1000-4                                                          27966884       25696478       -8.12%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=1-4                                                         9392310        8410631        -10.45%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=10-4                                                        10309538       9547577        -7.39%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=100-4                                                       29171517       29722623       +1.89%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=1000-4                                                      231882488      216516697      -6.63%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=1-4                                                            118438         103779         -12.38%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=10-4                                                           130213         112490         -13.61%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=100-4                                                          381984         346722         -9.23%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=1000-4                                                         2416749        2236506        -7.46%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=1-4                                                            1009892        862740         -14.57%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=10-4                                                           1111866        984807         -11.43%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=100-4                                                          3529651        3086659        -12.55%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=1000-4                                                         26048717       25073548       -3.74%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=1-4                                                        10241886       9202068        -10.15%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=10-4                                                       11568762       10533713       -8.95%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=100-4                                                      36793743       33868690       -7.95%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=1000-4                                                     299180475      289166485      -3.35%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=1-4                                                                  118378         99254          -16.16%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=10-4                                                                 131523         109994         -16.37%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=100-4                                                                322016         300992         -6.53%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=1000-4                                                               2067624        1845821        -10.73%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=1-4                                                                  899591         802861         -10.75%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=10-4                                                                 1119820        917407         -18.08%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=100-4                                                                3196549        2812125        -12.03%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=1000-4                                                               21738120       20778565       -4.41%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=1-4                                                              9549055        8695311        -8.94%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=10-4                                                             10814984       9935654        -8.13%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=100-4                                                            32884355       30791811       -6.36%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=1000-4                                                           259676434      249775193      -3.81%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=1-4                                                                 134884         109877         -18.54%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=10-4                                                                204809         170387         -16.81%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=100-4                                                               873110         773322         -11.43%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=1000-4                                                              7407539        6575270        -11.24%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=1-4                                                                 925993         803414         -13.24%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=10-4                                                                1092952        934640         -14.48%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=100-4                                                               3277139        2945700        -10.11%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=1000-4                                                              23952072       22208274       -7.28%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=1-4                                                             9191438        8484468        -7.69%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=10-4                                                            10512578       9473421        -9.88%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=100-4                                                           27620186       26459953       -4.20%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=1000-4                                                          215594431      209940386      -2.62%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=1-4                                                  61798          45995          -25.57%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=10-4                                                 70196          53271          -24.11%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=100-4                                                167125         138763         -16.97%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=1000-4                                               1000689        901397         -9.92%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=1-4                                                  245999         207650         -15.59%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=10-4                                                 317976         278957         -12.27%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=100-4                                                1090784        1009614        -7.44%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=1000-4                                               8424074        8171397        -3.00%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=1-4                                          1995325        1838246        -7.87%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=10-4                                         2739788        2527586        -7.75%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=100-4                                        10981052       10433724       -4.98%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=1000-4                                       93023251       87843505       -5.57%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=1-4                                                   47036          34717          -26.19%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=10-4                                                  57102          40255          -29.50%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=100-4                                                 158307         124772         -21.18%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=1000-4                                                1074099        883220         -17.77%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=1-4                                                   129073         106099         -17.80%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=10-4                                                  149653         127563         -14.76%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=100-4                                                 457096         407948         -10.75%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=1000-4                                                3030718        2819698        -6.96%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=1-4                                               873537         851272         -2.55%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=10-4                                              1076251        976832         -9.24%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=100-4                                             3122204        3032616        -2.87%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=1000-4                                            22068882       21058362       -4.58%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=1-4                72362          58918          -18.58%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=10-4               96081          80344          -16.38%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=100-4              360349         304280         -15.56%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=1000-4             2816711        2357404        -16.31%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=1-4                235423         212279         -9.83%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=10-4               306197         266924         -12.83%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=100-4              943800         842572         -10.73%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=1000-4             6766969        6067998        -10.33%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=1-4        2041404        1717836        -15.85%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=10-4       2379154        1969817        -17.21%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=100-4      6442768        6013990        -6.66%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=1000-4     48369492       44017955       -9.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=1-4                                           155343         132587         -14.65%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=10-4                                          189158         166581         -11.94%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=100-4                                         592950         542224         -8.55%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=1000-4                                        4656248        4003215        -14.02%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=1-4                                           1137995        1021214        -10.26%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=10-4                                          1446235        1323121        -8.51%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=100-4                                         5268567        4835672        -8.22%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=1000-4                                        41005626       40172132       -2.03%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=1-4                                       11308429       10576310       -6.47%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=10-4                                      15217498       13843306       -9.03%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=100-4                                     55209969       51078324       -7.48%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=1000-4                                    491300565      467074730      -4.93%

benchmark                                                                                                             old allocs     new allocs     delta
BenchmarkRangeQuery/expr=a_one,steps=1-4                                                                              112            112            +0.00%
BenchmarkRangeQuery/expr=a_one,steps=10-4                                                                             112            112            +0.00%
BenchmarkRangeQuery/expr=a_one,steps=100-4                                                                            113            113            +0.00%
BenchmarkRangeQuery/expr=a_one,steps=1000-4                                                                           132            132            +0.00%
BenchmarkRangeQuery/expr=a_ten,steps=1-4                                                                              252            252            +0.00%
BenchmarkRangeQuery/expr=a_ten,steps=10-4                                                                             252            252            +0.00%
BenchmarkRangeQuery/expr=a_ten,steps=100-4                                                                            253            253            +0.00%
BenchmarkRangeQuery/expr=a_ten,steps=1000-4                                                                           416            416            +0.00%
BenchmarkRangeQuery/expr=a_hundred,steps=1-4                                                                          1605           1605           +0.00%
BenchmarkRangeQuery/expr=a_hundred,steps=10-4                                                                         1605           1605           +0.00%
BenchmarkRangeQuery/expr=a_hundred,steps=100-4                                                                        1606           1606           +0.00%
BenchmarkRangeQuery/expr=a_hundred,steps=1000-4                                                                       3210           3210           +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=1-4                                                                    140            140            +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=10-4                                                                   140            140            +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=100-4                                                                  141            141            +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=1000-4                                                                 158            158            +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=1-4                                                                    317            317            +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=10-4                                                                   317            317            +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=100-4                                                                  318            318            +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=1000-4                                                                 461            461            +0.00%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=1-4                                                                2036           2036           +0.00%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=10-4                                                               2036           2036           +0.00%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=100-4                                                              2037           2037           +0.00%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=1000-4                                                             3441           3441           +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=10000-4                                                                351            351            +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=1-4                                                  349            349            +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=10-4                                                 349            349            +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=100-4                                                351            351            +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=1000-4                                               368            365            -0.82%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=1-4                                                  1825           1825           +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=10-4                                                 1822           1823           +0.05%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=100-4                                                1839           1839           +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=1000-4                                               1989           1989           +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=1-4                                              16514          16514          +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=10-4                                             16513          16512          -0.01%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=100-4                                            16756          16757          +0.01%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=1000-4                                           18217          18215          -0.01%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=1-4                                                                 301            301            +0.00%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=10-4                                                                301            301            +0.00%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=100-4                                                               303            303            +0.00%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=1000-4                                                              317            317            +0.00%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=1-4                                                                 1774           1774           +0.00%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=10-4                                                                1774           1774           +0.00%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=100-4                                                               1794           1794           +0.00%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=1000-4                                                              1937           1941           +0.21%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=1-4                                                             16459          16459          +0.00%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=10-4                                                            16460          16459          -0.01%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=100-4                                                           16679          16679          +0.00%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=1000-4                                                          18181          18181          +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=1-4                                                                    301            301            +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=10-4                                                                   301            301            +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=100-4                                                                  303            303            +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=1000-4                                                                 317            317            +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=1-4                                                                    1774           1774           +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=10-4                                                                   1774           1774           +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=100-4                                                                  1794           1794           +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=1000-4                                                                 1935           1937           +0.10%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=1-4                                                                16459          16459          +0.00%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=10-4                                                               16459          16460          +0.01%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=100-4                                                              16672          16667          -0.03%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=1000-4                                                             18120          18181          +0.34%
BenchmarkRangeQuery/expr=-a_one,steps=1-4                                                                             122            122            +0.00%
BenchmarkRangeQuery/expr=-a_one,steps=10-4                                                                            122            122            +0.00%
BenchmarkRangeQuery/expr=-a_one,steps=100-4                                                                           123            123            +0.00%
BenchmarkRangeQuery/expr=-a_one,steps=1000-4                                                                          142            142            +0.00%
BenchmarkRangeQuery/expr=-a_ten,steps=1-4                                                                             299            299            +0.00%
BenchmarkRangeQuery/expr=-a_ten,steps=10-4                                                                            299            299            +0.00%
BenchmarkRangeQuery/expr=-a_ten,steps=100-4                                                                           300            300            +0.00%
BenchmarkRangeQuery/expr=-a_ten,steps=1000-4                                                                          463            463            +0.00%
BenchmarkRangeQuery/expr=-a_hundred,steps=1-4                                                                         2018           2018           +0.00%
BenchmarkRangeQuery/expr=-a_hundred,steps=10-4                                                                        2018           2018           +0.00%
BenchmarkRangeQuery/expr=-a_hundred,steps=100-4                                                                       2019           2019           +0.00%
BenchmarkRangeQuery/expr=-a_hundred,steps=1000-4                                                                      3623           3623           +0.00%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=1-4                                                                      196            196            +0.00%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=10-4                                                                     232            232            +0.00%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=100-4                                                                    594            594            +0.00%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=1000-4                                                                   4232           4232           +0.00%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=1-4                                                                      530            530            +0.00%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=10-4                                                                     576            576            +0.00%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=100-4                                                                    1040           1040           +0.00%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=1000-4                                                                   5972           5999           +0.45%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=1-4                                                              3744           3744           +0.00%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=10-4                                                             3869           3870           +0.03%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=100-4                                                            5124           5129           +0.10%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=1000-4                                                           21691          21213          -2.20%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=10000-4                                                                  40609          40609          +0.00%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=1-4                                                     389            389            +0.00%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=10-4                                                    425            425            +0.00%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=100-4                                                   786            786            +0.00%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=1000-4                                                  4405           4405           +0.00%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=1-4                                                     625            625            +0.00%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=10-4                                                    661            661            +0.00%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=100-4                                                   1023           1023           +0.00%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=1000-4                                                  4869           4869           +0.00%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=1-4                                             2752           2751           -0.04%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=10-4                                            2930           2930           +0.00%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=100-4                                           4719           4718           -0.02%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=1000-4                                          24915          24964          +0.20%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=1-4                                                      391            391            +0.00%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=10-4                                                     427            427            +0.00%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=100-4                                                    788            788            +0.00%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=1000-4                                                   4407           4407           +0.00%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=1-4                                                      634            634            +0.00%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=10-4                                                     690            690            +0.00%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=100-4                                                    1247           1247           +0.00%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=1000-4                                                   7047           7049           +0.03%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=1-4                                              2822           2821           -0.04%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=10-4                                             3079           3078           -0.03%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=100-4                                            5656           5650           -0.11%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=1000-4                                           33773          33793          +0.06%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=1-4                                                  391            391            +0.00%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=10-4                                                 427            427            +0.00%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=100-4                                                788            788            +0.00%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=1000-4                                               4407           4407           +0.00%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=1-4                                                  625            625            +0.00%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=10-4                                                 661            661            +0.00%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=100-4                                                1023           1023           +0.00%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=1000-4                                               4869           4869           +0.00%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=1-4                                          2752           2751           -0.04%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=10-4                                         2930           2929           -0.03%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=100-4                                        4715           4715           +0.00%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=1000-4                                       24935          24948          +0.05%
BenchmarkRangeQuery/expr=abs(a_one),steps=1-4                                                                         146            146            +0.00%
BenchmarkRangeQuery/expr=abs(a_one),steps=10-4                                                                        155            155            +0.00%
BenchmarkRangeQuery/expr=abs(a_one),steps=100-4                                                                       246            246            +0.00%
BenchmarkRangeQuery/expr=abs(a_one),steps=1000-4                                                                      1165           1165           +0.00%
BenchmarkRangeQuery/expr=abs(a_ten),steps=1-4                                                                         335            335            +0.00%
BenchmarkRangeQuery/expr=abs(a_ten),steps=10-4                                                                        354            354            +0.00%
BenchmarkRangeQuery/expr=abs(a_ten),steps=100-4                                                                       542            542            +0.00%
BenchmarkRangeQuery/expr=abs(a_ten),steps=1000-4                                                                      2581           2582           +0.04%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=1-4                                                                     2162           2162           +0.00%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=10-4                                                                    2237           2237           +0.00%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=100-4                                                                   2987           2984           -0.10%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=1000-4                                                                  12065          12072          +0.06%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=1-4                                      238            238            +0.00%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=10-4                                     283            283            +0.00%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=100-4                                    734            734            +0.00%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=1000-4                                   5253           5253           +0.00%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=1-4                                      456            456            +0.00%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=10-4                                     511            511            +0.00%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=100-4                                    1059           1059           +0.00%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=1000-4                                   6699           6699           +0.00%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=1-4                                  2643           2643           +0.00%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=10-4                                 2754           2754           +0.00%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=100-4                                3862           3862           +0.00%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=1000-4                               16525          16533          +0.05%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=1-4                                             190            190            +0.00%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=10-4                                            253            253            +0.00%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=100-4                                           884            884            +0.00%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=1000-4                                          7203           7203           +0.00%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=1-4                                             398            398            +0.00%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=10-4                                            471            471            +0.00%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=100-4                                           1199           1199           +0.00%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=1000-4                                          8639           8640           +0.01%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=1-4                                         2405           2405           +0.00%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=10-4                                        2534           2534           +0.00%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=100-4                                       3823           3823           +0.00%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=1000-4                                      18312          18309          -0.02%
BenchmarkRangeQuery/expr=sum(a_one),steps=1-4                                                                         137            137            +0.00%
BenchmarkRangeQuery/expr=sum(a_one),steps=10-4                                                                        173            173            +0.00%
BenchmarkRangeQuery/expr=sum(a_one),steps=100-4                                                                       534            534            +0.00%
BenchmarkRangeQuery/expr=sum(a_one),steps=1000-4                                                                      4153           4153           +0.00%
BenchmarkRangeQuery/expr=sum(a_ten),steps=1-4                                                                         278            278            +0.00%
BenchmarkRangeQuery/expr=sum(a_ten),steps=10-4                                                                        314            314            +0.00%
BenchmarkRangeQuery/expr=sum(a_ten),steps=100-4                                                                       675            675            +0.00%
BenchmarkRangeQuery/expr=sum(a_ten),steps=1000-4                                                                      4438           4438           +0.00%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=1-4                                                                     1632           1632           +0.00%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=10-4                                                                    1668           1668           +0.00%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=100-4                                                                   2029           2029           +0.00%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=1000-4                                                                  7234           7234           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=1-4                                                             414            414            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=10-4                                                            948            948            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=100-4                                                           6289           6288           -0.02%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=1000-4                                                          59868          59863          -0.01%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=1-4                                                             1903           1904           +0.05%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=10-4                                                            2438           2437           -0.04%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=100-4                                                           7779           7779           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=1000-4                                                          62942          62940          -0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=1-4                                                         16790          16797          +0.04%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=10-4                                                        17332          17338          +0.03%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=100-4                                                       22683          22684          +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=1000-4                                                      94091          94079          -0.01%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=1-4                                                            300            300            +0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=10-4                                                           363            363            +0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=100-4                                                          994            994            +0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=1000-4                                                         7473           7473           +0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=1-4                                                            1892           1892           +0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=10-4                                                           2379           2379           +0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=100-4                                                          7250           7250           +0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=1000-4                                                         57713          57714          +0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=1-4                                                        17804          17801          -0.02%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=10-4                                                       22458          22453          -0.02%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=100-4                                                      69079          69083          +0.01%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=1000-4                                                     553081         553079         -0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=1-4                                                                  296            296            +0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=10-4                                                                 341            341            +0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=100-4                                                                792            792            +0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=1000-4                                                               5471           5471           +0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=1-4                                                                  1852           1852           +0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=10-4                                                                 2159           2159           +0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=100-4                                                                5230           5230           +0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=1000-4                                                               37689          37688          -0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=1-4                                                              17393          17398          +0.03%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=10-4                                                             20258          20253          -0.02%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=100-4                                                            48887          48873          -0.03%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=1000-4                                                           352693         352636         -0.02%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=1-4                                                                 370            370            +0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=10-4                                                                706            706            +0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=100-4                                                               4067           4067           +0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=1000-4                                                              37844          37843          -0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=1-4                                                                 1860           1859           -0.05%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=10-4                                                                2195           2195           +0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=100-4                                                               5556           5556           +0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=1000-4                                                              40916          40923          +0.02%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=1-4                                                             16747          16751          +0.02%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=10-4                                                            17078          17085          +0.04%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=100-4                                                           20480          20481          +0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=1000-4                                                          71846          71844          -0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=1-4                                                  247            247            +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=10-4                                                 283            283            +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=100-4                                                645            645            +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=1000-4                                               4279           4279           +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=1-4                                                  653            653            +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=10-4                                                 699            699            +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=100-4                                                1162           1164           +0.17%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=1000-4                                               6068           6045           -0.38%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=1-4                                          4596           4597           +0.02%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=10-4                                         4720           4721           +0.02%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=100-4                                        6009           5987           -0.37%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=1000-4                                       21465          21403          -0.29%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=1-4                                                   168            168            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=10-4                                                  222            222            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=100-4                                                 763            763            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=1000-4                                                6180           6180           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=1-4                                                   348            348            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=10-4                                                  411            411            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=100-4                                                 1042           1042           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=1000-4                                                7485           7485           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=1-4                                               2068           2068           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=10-4                                              2131           2131           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=100-4                                             2762           2763           +0.04%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=1000-4                                            10468          10468          +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=1-4                307            307            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=10-4               451            451            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=100-4              1893           1893           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=1000-4             16327          16327          +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=1-4                667            667            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=10-4               829            829            +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=100-4              2451           2451           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=1000-4             18937          18937          +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=1-4        4108           4108           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=10-4       4270           4270           +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=100-4      5893           5892           -0.02%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=1000-4     24902          24902          +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=1-4                                           404            404            +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=10-4                                          449            449            +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=100-4                                         900            900            +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=1000-4                                        5579           5579           +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=1-4                                           2428           2428           +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=10-4                                          2564           2564           +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=100-4                                         3923           3923           +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=1000-4                                        19267          19263          -0.02%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=1-4                                       22535          22536          +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=10-4                                      23514          23517          +0.01%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=100-4                                     33573          33542          -0.09%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=1000-4                                    151745         151695         -0.03%

benchmark                                                                                                             old bytes     new bytes     delta
BenchmarkRangeQuery/expr=a_one,steps=1-4                                                                              7001          7001          +0.00%
BenchmarkRangeQuery/expr=a_one,steps=10-4                                                                             7001          7001          +0.00%
BenchmarkRangeQuery/expr=a_one,steps=100-4                                                                            7050          7050          +0.00%
BenchmarkRangeQuery/expr=a_one,steps=1000-4                                                                           9535          9533          -0.02%
BenchmarkRangeQuery/expr=a_ten,steps=1-4                                                                              17225         17225         +0.00%
BenchmarkRangeQuery/expr=a_ten,steps=10-4                                                                             17226         17226         +0.00%
BenchmarkRangeQuery/expr=a_ten,steps=100-4                                                                            16992         16990         -0.01%
BenchmarkRangeQuery/expr=a_ten,steps=1000-4                                                                           31870         31870         +0.00%
BenchmarkRangeQuery/expr=a_hundred,steps=1-4                                                                          117901        117549        -0.30%
BenchmarkRangeQuery/expr=a_hundred,steps=10-4                                                                         117424        117806        +0.33%
BenchmarkRangeQuery/expr=a_hundred,steps=100-4                                                                        114481        114792        +0.27%
BenchmarkRangeQuery/expr=a_hundred,steps=1000-4                                                                       267782        267700        -0.03%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=1-4                                                                    7881          7881          +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=10-4                                                                   7881          7881          +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=100-4                                                                  7930          7930          +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=1000-4                                                                 10253         10254         +0.01%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=1-4                                                                    21326         21325         -0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=10-4                                                                   21326         21326         +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=100-4                                                                  21092         21091         -0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=1000-4                                                                 34369         34370         +0.00%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=1-4                                                                153227        153225        -0.00%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=10-4                                                               153261        153243        -0.01%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=100-4                                                              150702        150618        -0.06%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=1000-4                                                             287624        287627        +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=10000-4                                                                47917         48081         +0.34%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=1-4                                                  1185078       1185078       +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=10-4                                                 1185225       1185226       +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=100-4                                                1186996       1186991       -0.00%
BenchmarkRangeQuery/expr=holt_winters(a_one[1d],_0.3,_0.3),steps=1000-4                                               1205242       1204510       -0.06%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=1-4                                                  1308360       1308364       +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=10-4                                                 1309538       1309678       +0.01%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=100-4                                                1288360       1288352       -0.00%
BenchmarkRangeQuery/expr=holt_winters(a_ten[1d],_0.3,_0.3),steps=1000-4                                               1413948       1413948       +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=1-4                                              2536815       2536842       +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=10-4                                             2539370       2539293       -0.00%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=100-4                                            2630932       2630996       +0.00%
BenchmarkRangeQuery/expr=holt_winters(a_hundred[1d],_0.3,_0.3),steps=1000-4                                           4353096       4352984       -0.00%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=1-4                                                                 555021        555965        +0.17%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=10-4                                                                555967        555022        -0.17%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=100-4                                                               555785        555784        -0.00%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=1000-4                                                              562264        562264        +0.00%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=1-4                                                                 683736        680582        -0.46%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=10-4                                                                683756        680599        -0.46%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=100-4                                                               691656        691659        +0.00%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=1000-4                                                              770952        850425        +10.31%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=1-4                                                             1936959       1936976       +0.00%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=10-4                                                            1937768       1937714       -0.00%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=100-4                                                           2080648       2080638       -0.00%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=1000-4                                                          4318696       4318696       +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=1-4                                                                    554707        556280        +0.28%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=10-4                                                                   555336        555022        -0.06%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=100-4                                                                  555153        555784        +0.11%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=1000-4                                                                 562264        562264        +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=1-4                                                                    681642        679544        -0.31%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=10-4                                                                   680605        680604        -0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=100-4                                                                  685348        685358        +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=1000-4                                                                 731216        770952        +5.43%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=1-4                                                                1936998       1936995       -0.00%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=10-4                                                               1937676       1937737       +0.00%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=100-4                                                              2000720       1999327       -0.07%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=1000-4                                                             3182484       4318696       +35.70%
BenchmarkRangeQuery/expr=-a_one,steps=1-4                                                                             7529          7529          +0.00%
BenchmarkRangeQuery/expr=-a_one,steps=10-4                                                                            7529          7529          +0.00%
BenchmarkRangeQuery/expr=-a_one,steps=100-4                                                                           7578          7578          +0.00%
BenchmarkRangeQuery/expr=-a_one,steps=1000-4                                                                          10063         10062         -0.01%
BenchmarkRangeQuery/expr=-a_ten,steps=1-4                                                                             20973         20972         -0.00%
BenchmarkRangeQuery/expr=-a_ten,steps=10-4                                                                            20973         20973         +0.00%
BenchmarkRangeQuery/expr=-a_ten,steps=100-4                                                                           20738         20738         +0.00%
BenchmarkRangeQuery/expr=-a_ten,steps=1000-4                                                                          35535         35534         -0.00%
BenchmarkRangeQuery/expr=-a_hundred,steps=1-4                                                                         152866        152864        -0.00%
BenchmarkRangeQuery/expr=-a_hundred,steps=10-4                                                                        152907        152878        -0.02%
BenchmarkRangeQuery/expr=-a_hundred,steps=100-4                                                                       150092        150461        +0.25%
BenchmarkRangeQuery/expr=-a_hundred,steps=1000-4                                                                      301952        301626        -0.11%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=1-4                                                                      13681         13681         +0.00%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=10-4                                                                     14833         14833         +0.00%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=100-4                                                                    26450         26452         +0.01%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=1000-4                                                                   146660        146668        +0.01%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=1-4                                                                      43837         43841         +0.01%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=10-4                                                                     46565         46564         -0.00%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=100-4                                                                    73517         73706         +0.26%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=1000-4                                                                   380740        384394        +0.96%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=1-4                                                              349551        349629        +0.02%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=10-4                                                             373660        373812        +0.04%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=100-4                                                            610578        612573        +0.33%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=1000-4                                                           3786764       3550005       -6.25%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=10000-4                                                                  1377700       1375245       -0.18%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=1-4                                                     102250        102249        -0.00%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=10-4                                                    103395        103395        +0.00%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=100-4                                                   114970        114971        +0.00%
BenchmarkRangeQuery/expr=a_one_and_b_one{l=~'.*[0-4]$'},steps=1000-4                                                  232709        232689        -0.01%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=1-4                                                     122693        122691        -0.00%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=10-4                                                    123852        123856        +0.00%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=100-4                                                   135141        135155        +0.01%
BenchmarkRangeQuery/expr=a_ten_and_b_ten{l=~'.*[0-4]$'},steps=1000-4                                                  273543        274195        +0.24%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=1-4                                             314823        314785        -0.01%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=10-4                                            336282        336284        +0.00%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=100-4                                           546622        546636        +0.00%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=1000-4                                          3079044       3123462       +1.44%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=1-4                                                      102322        102322        +0.00%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=10-4                                                     103475        103475        +0.00%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=100-4                                                    115053        115055        +0.00%
BenchmarkRangeQuery/expr=a_one_or_b_one{l=~'.*[0-4]$'},steps=1000-4                                                   232866        232822        -0.02%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=1-4                                                      123760        123757        -0.00%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=10-4                                                     127861        127856        -0.00%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=100-4                                                    168548        168598        +0.03%
BenchmarkRangeQuery/expr=a_ten_or_b_ten{l=~'.*[0-4]$'},steps=1000-4                                                   601480        601585        +0.02%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=1-4                                              324419        324422        +0.00%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=10-4                                             368371        368370        -0.00%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=100-4                                            806747        806289        -0.06%
BenchmarkRangeQuery/expr=a_hundred_or_b_hundred{l=~'.*[0-4]$'},steps=1000-4                                           5584320       5516024       -1.22%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=1-4                                                  102322        102322        +0.00%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=10-4                                                 103476        103475        -0.00%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=100-4                                                115057        115054        -0.00%
BenchmarkRangeQuery/expr=a_one_unless_b_one{l=~'.*[0-4]$'},steps=1000-4                                               232830        232789        -0.02%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=1-4                                                  122697        122694        -0.00%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=10-4                                                 123854        123853        -0.00%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=100-4                                                135153        135114        -0.03%
BenchmarkRangeQuery/expr=a_ten_unless_b_ten{l=~'.*[0-4]$'},steps=1000-4                                               274918        273536        -0.50%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=1-4                                          314811        314770        -0.01%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=10-4                                         336298        336222        -0.02%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=100-4                                        546035        546492        +0.08%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=1000-4                                       3088442       3089124       +0.02%
BenchmarkRangeQuery/expr=abs(a_one),steps=1-4                                                                         8729          8729          +0.00%
BenchmarkRangeQuery/expr=abs(a_one),steps=10-4                                                                        9017          9017          +0.00%
BenchmarkRangeQuery/expr=abs(a_one),steps=100-4                                                                       11948         11947         -0.01%
BenchmarkRangeQuery/expr=abs(a_one),steps=1000-4                                                                      43237         43236         -0.00%
BenchmarkRangeQuery/expr=abs(a_ten),steps=1-4                                                                         25842         25842         +0.00%
BenchmarkRangeQuery/expr=abs(a_ten),steps=10-4                                                                        27602         27599         -0.01%
BenchmarkRangeQuery/expr=abs(a_ten),steps=100-4                                                                       44956         44940         -0.04%
BenchmarkRangeQuery/expr=abs(a_ten),steps=1000-4                                                                      236656        236030        -0.26%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=1-4                                                                     195930        195925        -0.00%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=10-4                                                                    211265        211242        -0.01%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=100-4                                                                   362134        361997        -0.04%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=1000-4                                                                  2085277       2085585       +0.01%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=1-4                                      14306         14305         -0.01%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=10-4                                     15746         15746         +0.00%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=100-4                                    30195         30195         +0.00%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=1000-4                                   176711        176710        -0.00%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=1-4                                      33067         33068         +0.00%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=10-4                                     35979         35981         +0.01%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=100-4                                    64860         64857         -0.00%
BenchmarkRangeQuery/expr=label_replace(a_ten,_'l2',_'$1',_'l',_'(.*)'),steps=1000-4                                   371582        371142        -0.12%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=1-4                                  219002        218973        -0.01%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=10-4                                 235573        235504        -0.03%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=100-4                                397168        397710        +0.14%
BenchmarkRangeQuery/expr=label_replace(a_hundred,_'l2',_'$1',_'l',_'(.*)'),steps=1000-4                               2278491       2235610       -1.88%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=1-4                                             10906         10905         -0.01%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=10-4                                            12922         12922         +0.00%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=100-4                                           33132         33131         -0.00%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=1000-4                                          237240        237240        +0.00%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=1-4                                             29267         29266         -0.00%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=10-4                                            32755         32751         -0.01%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=100-4                                           67395         67397         +0.00%
BenchmarkRangeQuery/expr=label_join(a_ten,_'l2',_'-',_'l',_'l'),steps=1000-4                                          431717        431952        +0.05%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=1-4                                         211379        211384        +0.00%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=10-4                                        228477        228455        -0.01%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=100-4                                       397065        397756        +0.17%
BenchmarkRangeQuery/expr=label_join(a_hundred,_'l2',_'-',_'l',_'l'),steps=1000-4                                      2390816       2336350       -2.28%
BenchmarkRangeQuery/expr=sum(a_one),steps=1-4                                                                         8185          8185          +0.00%
BenchmarkRangeQuery/expr=sum(a_one),steps=10-4                                                                        9913          9913          +0.00%
BenchmarkRangeQuery/expr=sum(a_one),steps=100-4                                                                       27242         27242         +0.00%
BenchmarkRangeQuery/expr=sum(a_one),steps=1000-4                                                                      202534        202556        +0.01%
BenchmarkRangeQuery/expr=sum(a_ten),steps=1-4                                                                         20602         20601         -0.00%
BenchmarkRangeQuery/expr=sum(a_ten),steps=10-4                                                                        22330         22330         +0.00%
BenchmarkRangeQuery/expr=sum(a_ten),steps=100-4                                                                       39382         39379         -0.01%
BenchmarkRangeQuery/expr=sum(a_ten),steps=1000-4                                                                      227255        227240        -0.01%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=1-4                                                                     139701        139698        -0.00%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=10-4                                                                    141455        141475        +0.01%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=100-4                                                                   156222        155966        -0.16%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=1000-4                                                                  496046        498667        +0.53%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=1-4                                                             32963         32964         +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=10-4                                                            80514         80513         -0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=100-4                                                           555802        555758        -0.01%
BenchmarkRangeQuery/expr=sum_without_(l)(h_one),steps=1000-4                                                          5334234       5328923       -0.10%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=1-4                                                             176004        176003        -0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=10-4                                                            226786        226750        -0.02%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=100-4                                                           731412        732856        +0.20%
BenchmarkRangeQuery/expr=sum_without_(l)(h_ten),steps=1000-4                                                          6003876       5993309       -0.18%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=1-4                                                         1605460       1605607       +0.01%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=10-4                                                        1661980       1662636       +0.04%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=100-4                                                       2217588       2214484       -0.14%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=1000-4                                                      15997150      15996468      -0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=1-4                                                            22506         22506         +0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=10-4                                                           26971         26970         -0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=100-4                                                          71346         71352         +0.01%
BenchmarkRangeQuery/expr=sum_without_(le)(h_one),steps=1000-4                                                         534258        534077        -0.03%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=1-4                                                            174929        174919        -0.01%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=10-4                                                           221389        221421        +0.01%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=100-4                                                          682651        682634        -0.00%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=1000-4                                                         5515283       5495956       -0.35%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=1-4                                                        1709296       1708153       -0.07%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=10-4                                                       2193145       2192774       -0.02%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=100-4                                                      7065355       7062628       -0.04%
BenchmarkRangeQuery/expr=sum_without_(le)(h_hundred),steps=1000-4                                                     64374284      64376985      +0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=1-4                                                                  21961         21962         +0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=10-4                                                                 23978         23978         +0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=100-4                                                                43876         43871         -0.01%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=1000-4                                                               261929        261748        -0.07%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=1-4                                                                  168846        168832        -0.01%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=10-4                                                                 187942        187940        -0.00%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=100-4                                                                376483        375581        -0.24%
BenchmarkRangeQuery/expr=sum_by_(l)(h_ten),steps=1000-4                                                               2471801       2452181       -0.79%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=1-4                                                              1647334       1647522       +0.01%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=10-4                                                             1858349       1857328       -0.05%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=100-4                                                            3993333       3976093       -0.43%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=1000-4                                                           30009648      29989880      -0.07%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=1-4                                                                 26979         26977         -0.01%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=10-4                                                                47604         47603         -0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=100-4                                                               253593        253585        -0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_one),steps=1000-4                                                              2333972       2333844       -0.01%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=1-4                                                                 169323        169317        -0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=10-4                                                                190004        189966        -0.02%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=100-4                                                               393904        393741        -0.04%
BenchmarkRangeQuery/expr=sum_by_(le)(h_ten),steps=1000-4                                                              2645601       2645914       +0.01%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=1-4                                                             1598734       1598858       +0.01%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=10-4                                                            1623211       1623871       +0.04%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=100-4                                                           1910013       1910069       +0.00%
BenchmarkRangeQuery/expr=sum_by_(le)(h_hundred),steps=1000-4                                                          8998478       8998387       -0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=1-4                                                  15282         15282         +0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=10-4                                                 16434         16435         +0.01%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=100-4                                                28053         28052         -0.00%
BenchmarkRangeQuery/expr=rate(a_one[1m])_+_rate(b_one[1m]),steps=1000-4                                               147927        147927        +0.00%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=1-4                                                  50936         50932         -0.01%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=10-4                                                 53672         53661         -0.02%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=100-4                                                80201         80706         +0.63%
BenchmarkRangeQuery/expr=rate(a_ten[1m])_+_rate(b_ten[1m]),steps=1000-4                                               384962        376443        -2.21%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=1-4                                          412375        412453        +0.02%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=10-4                                         436262        436577        +0.07%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=100-4                                        680938        677019        -0.58%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=1000-4                                       3526516       3572284       +1.30%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=1-4                                                   9498          9497          -0.01%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=10-4                                                  13386         13386         +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=100-4                                                 52317         52318         +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m])),steps=1000-4                                                443487        443470        -0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=1-4                                                   25198         25199         +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=10-4                                                  29375         29375         +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=100-4                                                 70908         70909         +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m])),steps=1000-4                                                502030        502426        +0.08%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=1-4                                               176049        176041        -0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=10-4                                              180265        180266        +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=100-4                                             219594        219846        +0.11%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m])),steps=1000-4                                            791105        791081        -0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=1-4                19026         19026         +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=10-4               27955         27954         -0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=100-4              117340        117339        -0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=1000-4             1015093       1015013       -0.01%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=1-4                50427         50430         +0.01%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=10-4               59931         59933         +0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=100-4              154513        154528        +0.01%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_ten[1m]))_/_sum_without_(l)(rate(b_ten[1m])),steps=1000-4             1132411       1132407       -0.00%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=1-4        352145        352163        +0.01%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=10-4       361719        361678        -0.01%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=100-4      452274        451764        -0.11%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_hundred[1m]))_/_sum_without_(l)(rate(b_hundred[1m])),steps=1000-4     1700122       1700267       +0.01%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=1-4                                           29419         29419         +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=10-4                                          30861         30861         +0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=100-4                                         44997         45004         +0.02%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_one[5m])),steps=1000-4                                        205845        206000        +0.08%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=1-4                                           232006        231999        -0.00%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=10-4                                          237631        237575        -0.02%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=100-4                                         289772        290459        +0.24%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_ten[5m])),steps=1000-4                                        1056586       1056438       -0.01%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=1-4                                       2222514       2223032       +0.02%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=10-4                                      2270044       2271754       +0.08%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=100-4                                     2792285       2751134       -1.47%
BenchmarkRangeQuery/expr=histogram_quantile(0.9,_rate(h_hundred[5m])),steps=1000-4                                    15264432      15261922      -0.02%

@csmarchbanks
Copy link
Contributor Author

A couple of the promql benchmarks are failing with the new code change making me think it is unsafe. I am investigating why, and also why no unit tests are failing.

@krasi-georgiev
Copy link
Contributor

krasi-georgiev commented Dec 14, 2018

@csmarchbanks could be becasue of unrelated change already fixed in #479

btw I also did some test on an isolated VM and here are the top results:

MAster branch
go test -benchmem -run=^$ github.com/prometheus/prometheus/promql -bench . -benchtime=3s -timeout 99999s > old.txt

PR branch
go test -benchmem -run=^$ github.com/prometheus/prometheus/promql -bench . -benchtime=3s -timeout 99999s > new.txt

benchcmp -best -mag old.txt new.txt


benchmark                                                                                                             old ns/op      new ns/op      delta
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=1000-2                                                          2462707228     3027909805     +22.95%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=1000-2                                                              247151274      302424427      +22.36%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=1000-2                                                              25159984       30665612       +21.88%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=100-2                                                               32930794       39973964       +21.39%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=100-2                                                           325563822      379995267      +16.72%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=1-2                                          2418432        2142766        -11.40%
BenchmarkRangeQuery/expr=changes(a_one[1d]),steps=100-2                                                               3775489        4246101        +12.46%
BenchmarkRangeQuery/expr=a_one_-_b_one,steps=100-2                                                                    204199         225834         +10.60%
BenchmarkRangeQuery/expr=changes(a_ten[1d]),steps=10-2                                                                11859893       12950976       +9.20%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=1-2                                          3234415        2965815        -8.30%
BenchmarkRangeQuery/expr=a_one,steps=1000-2                                                                           182592         198874         +8.92%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=10-2                                                               1415964        1531747        +8.18%
BenchmarkRangeQuery/expr=sum(a_hundred),steps=1000-2                                                                  21239839       19961066       -6.02%
BenchmarkRangeQuery/expr=sum_without_(l)(rate(a_one[1m]))_/_sum_without_(l)(rate(b_one[1m])),steps=1-2                130593         123107         -5.73%
BenchmarkRangeQuery/expr=rate(a_one[1m]),steps=10-2                                                                   59759          56338          -5.72%
BenchmarkRangeQuery/expr=label_replace(a_one,_'l2',_'$1',_'l',_'(.*)'),steps=10-2                                     100645         94903          -5.71%
BenchmarkRangeQuery/expr=label_join(a_one,_'l2',_'-',_'l',_'l'),steps=1000-2                                          1111374        1177158        +5.92%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=100-2                                                          5190089        4905419        -5.48%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=100-2                                           8514994        9003366        +5.74%
BenchmarkRangeQuery/expr=rate(a_hundred[1d]),steps=1000-2                                                             1543312454     1631678133     +5.73%
BenchmarkRangeQuery/expr=rate(a_one[1d]),steps=1000-2                                                                 16023455       16862189       +5.23%
BenchmarkRangeQuery/expr=-a_ten,steps=1-2                                                                             182774         173684         -4.97%
BenchmarkRangeQuery/expr=abs(a_ten),steps=1-2                                                                         208460         198401         -4.83%
BenchmarkRangeQuery/expr=sum_by_(l)(h_hundred),steps=100-2                                                            48596957       51005545       +4.96%
BenchmarkRangeQuery/expr=sum_without_(le)(h_ten),steps=10-2                                                           1585707        1513140        -4.58%
BenchmarkRangeQuery/expr=a_hundred_unless_b_hundred{l=~'.*[0-4]$'},steps=10-2                                         2694080        2570803        -4.58%
BenchmarkRangeQuery/expr=a_hundred_and_b_hundred{l=~'.*[0-4]$'},steps=10-2                                            2614591        2738276        +4.73%
BenchmarkRangeQuery/expr=sum_by_(l)(h_one),steps=1-2                                                                  193707         202797         +4.69%
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=10-2                                                            112601146      117485013      +4.34%
BenchmarkRangeQuery/expr=-a_one,steps=1000-2                                                                          190835         199107         +4.33%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=10-2                                                        15936177       16620103       +4.29%
BenchmarkRangeQuery/expr=rate(a_ten[1d]),steps=1000-2                                                                 156325646      163004447      +4.27%
BenchmarkRangeQuery/expr=abs(a_ten),steps=10-2                                                                        217056         225971         +4.11%

benchmark                                                                                                             old bytes     new bytes     delta
BenchmarkRangeQuery/expr=changes(a_hundred[1d]),steps=1000-2                                                          3182116       4318296       +35.71%
BenchmarkRangeQuery/expr=a_hundred_-_b_hundred,steps=10000-2                                                          47484344      59841045      +26.02%
BenchmarkRangeQuery/expr=sum_without_(l)(h_hundred),steps=1000-2                                                      12350408      10524958      -14.78%
BenchmarkRangeQuery/expr=rate(a_hundred[1m]),steps=10000-2                                                            3521958       3382720       -3.95%
BenchmarkRangeQuery/expr=rate(a_hundred[1m])_+_rate(b_hundred[1m]),steps=1000-2                                       3554414       3430909       -3.47%
BenchmarkRangeQuery/expr=a_ten_-_b_ten,steps=10000-2                                                                  3520588       3625559       +2.98%
BenchmarkRangeQuery/expr=rate(a_ten[1m]),steps=10000-2                                                                232134        236225        +1.76%
BenchmarkRangeQuery/expr=abs(a_hundred),steps=1000-2                                                                  2052450       2085007       +1.59%

@csmarchbanks
Copy link
Contributor Author

Yeah, looks like this is broken as it is right now, even after merging in the fix you mentioned. There are still some references pointing to a chunk that has been returned to the pool. These tests break right now:
go test ./promql -run jklsdfjsdlk -bench BenchmarkRangeQuery/expr=a_.+_-_b_.+,steps=10000

@csmarchbanks
Copy link
Contributor Author

Closing because the gains are minimal, and the bugs that could be caused are subtle.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants