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_test.go typos correct 2021-05-20 09:52:33 +08:00
index.go 32 should better be replaced by "symbolFactor" (#9203) 2021-08-13 16:38:53 +05:30
postings_test.go Speed up BenchmarkPostings_Stats (#9213) 2021-08-18 10:27:21 +01:00
postings.go tsdb: Expose total number of label pairs in head in TSDB stats page (#8343) 2021-01-07 12:11:32 +05:30
postingsstats_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
postingsstats.go Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109) 2020-04-15 11:17:41 +01:00