lzbench icon indicating copy to clipboard operation
lzbench copied to clipboard

[Feature Request] Include memory consumption in benchmark results

Open advancedxy opened this issue 9 years ago • 2 comments

Hi, some codec's high compression level may consume a a lot of memory. Is it possible to include memory consumption in benchmark results?

Also, -z means compression time instead of speed. The benchmark process can be interrupted by other processes, is it possible to include cpu time, which better indicates cpu consumption?

advancedxy avatar Sep 21 '16 04:09 advancedxy

Hi, these are good ideas.

The memory consumption is hard to do as each compressor uses it's own memory allocation which needs to be tracked.

inikep avatar Sep 26 '16 06:09 inikep

Maybe measure whole program usage before and during run of a the codec and simply subtract? I know it's simple, to not say primitive but this way you get approximate value of memory usage without knowledge of the running codec.

tansy avatar May 01 '19 20:05 tansy