Statistic struct to collect information about the performance of different array compression approaches.
Public Field Index: | |
int | ctdCompressions =0 |
The number of executed compressions. | |
int | ctdReads [NumberOfAlgorithms] ={} |
The number of measured decompression runs of each algorithm. | |
int | ctdWins [NumberOfAlgorithms] ={} |
Ticks::Duration | readTimes [NumberOfAlgorithms] ={} |
The overall decompression time of each algorithm. | |
size_t | sumCompressed [NumberOfAlgorithms] ={} |
For each algorithm, the sum of resulting bytes of all compressions performed. | |
size_t | sumCompressedWon [NumberOfAlgorithms] ={} |
size_t | sumUncompressed =0 |
The overall given array data to compress. | |
size_t | sumUnCompressedWon [NumberOfAlgorithms] ={} |
Ticks::Duration | writeTimes [NumberOfAlgorithms] ={} |
The overall compression time of each algorithm. | |
Public Method Index: | |
Statistics & | operator+= (const Statistics &other) |
ALIB_DLL void | Print (AString &result, const String &headline, bool printTotals) |
int alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::ctdCompressions =0 |
int alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::ctdReads[NumberOfAlgorithms] ={} |
int alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::ctdWins[NumberOfAlgorithms] ={} |
A counter for the number of times each algorithm was chosen for compression by providing the shortest encoding. The values sum up to field ctdCompressions.
Ticks::Duration alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::readTimes[NumberOfAlgorithms] ={} |
size_t alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::sumCompressed[NumberOfAlgorithms] ={} |
size_t alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::sumCompressedWon[NumberOfAlgorithms] ={} |
size_t alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::sumUncompressed =0 |
size_t alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::sumUnCompressedWon[NumberOfAlgorithms] ={} |
Ticks::Duration alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::writeTimes[NumberOfAlgorithms] ={} |
|
inline |
void alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::Print | ( | AString & | result, |
const String & | headline, | ||
bool | printTotals ) |
Writes compression statistics to the given string buffer.
result | A string buffer to collect the dump results. |
headline | A headline to integrate into the result table. |
printTotals | Determines if a summary line with summed up values should be written. |
Definition at line 32 of file ac.cpp.