prometheus/tsdb/index
Bryan Boreham 9dfdc3eb36
Speed up BenchmarkPostings_Stats (#9213)
The previous code re-used series IDs 1-1000 many times over, so a lot
of time was spent ensuring the lists of series were in ascending order.
The intended use of `MemPostings.Add()` is that all series IDs are
unique, and changing the benchmark to do this lets it finish ten times
faster.

(It doesn't affect the benchmark result, just the setup code)

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-08-18 10:27:21 +01:00
..
index.go 32 should better be replaced by "symbolFactor" (#9203) 2021-08-13 16:38:53 +05:30
index_test.go typos correct 2021-05-20 09:52:33 +08:00
postings.go
postings_test.go Speed up BenchmarkPostings_Stats (#9213) 2021-08-18 10:27:21 +01:00
postingsstats.go
postingsstats_test.go