#include <ac.hpp>
Statistic struct to collect information about the performance of different array compression approaches.
Public Fields | |
| 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 Methods | |
| Statistics & | operator+= (const Statistics &other) |
| ALIB_API void | Print (AString &result, const String &headline, bool printTotals) |
|
inline |
| ALIB_WARNINGS_ALLOW_UNSAFE_BUFFER_USAGE void Print | ( | AString & | result, |
| const String & | headline, | ||
| bool | printTotals | ||
| ) |
Writes compression statistics to the given string buffer.
This method is included only if module ALib Text is included in the ALib Distribution.
| 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 27 of file ac.cpp.
| 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] ={} |