prometheus/tsdb/chunkenc
Bryan Boreham 6788760efa
Reduce memory allocation in benchmarkIterator() (#5983)
Previously it was allocating millions of chunks, all containing the
same 250 samples.  Above some ratio of CPU performance to available
memory, the benchmark cannot run.

Make 250 a const and just allocate one chunk which we iterate
repeatedly till we reach the benchmark count.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
2021-07-26 19:36:54 +05:30
..
bstream.go Cleanup bstream_test.go based on post-merge feedback received on #7390 (#7413) 2020-06-18 14:49:39 +05:30
bstream_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
chunk.go tsdb/chunkenc: fix typo of return error. (#7670) 2020-10-28 12:03:11 +00:00
chunk_test.go Reduce memory allocation in benchmarkIterator() (#5983) 2021-07-26 19:36:54 +05:30
xor.go Use binary literals for xor chunk encoding 2021-07-05 16:39:24 +02:00