Statistic struct to collect information about the performance of different array compression approaches.
#include <ac.hpp>
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_API void | Print (AString &result, const String &headline, bool printTotals) |
int ctdReads[NumberOfAlgorithms] ={} |
int 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 readTimes[NumberOfAlgorithms] ={} |
size_t sumCompressed[NumberOfAlgorithms] ={} |
size_t sumCompressedWon[NumberOfAlgorithms] ={} |
size_t sumUncompressed =0 |
size_t sumUnCompressedWon[NumberOfAlgorithms] ={} |
Ticks::Duration writeTimes[NumberOfAlgorithms] ={} |
|
inline |
ALIB_WARNINGS_ALLOW_UNSAFE_BUFFER_USAGE void 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 21 of file ac.cpp.