Statistic struct to collect information about the performance of different array compression approaches.
#include <ac.hpp>
Public Field Index: | |
int | qtyCompressions =0 |
int | qtyReads [QtyAlgorithms] ={} |
int | qtyWins [QtyAlgorithms] ={} |
Ticks::Duration | readTimes [QtyAlgorithms] ={} |
size_t | sumCompressed [QtyAlgorithms] ={} |
size_t | sumCompressedWon [QtyAlgorithms] ={} |
size_t | sumUncompressed =0 |
size_t | sumUnCompressedWon [QtyAlgorithms] ={} |
Ticks::Duration | writeTimes [QtyAlgorithms] ={} |
Public Method Index: | |
Statistics & | operator+= (const Statistics &other) |
ALIB_API void | Print (AString &result, const String &headline, bool printTotals) |
int qtyReads[QtyAlgorithms] ={} |
int qtyWins[QtyAlgorithms] ={} |
A counter for the number of times each algorithm was chosen for compression by providing the shortest encoding. The values sum up to field qtyCompressions.
Ticks::Duration readTimes[QtyAlgorithms] ={} |
size_t sumCompressed[QtyAlgorithms] ={} |
size_t sumCompressedWon[QtyAlgorithms] ={} |
size_t sumUncompressed =0 |
size_t sumUnCompressedWon[QtyAlgorithms] ={} |
Ticks::Duration writeTimes[QtyAlgorithms] ={} |
|
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 23 of file ac.cpp.