9void ArrayCompressor::Statistics::Print(
AString& result,
const String& headline,
bool printTotals) {
14 Ticks::Duration tWrite;
15 Ticks::Duration tRead;
18 size_t winnerSizes= 0;
21 result <<
"-------------------------------------------------------------------\n";
23 fmt.
Format( result,
A_WCHAR(
"#Algo \u2205writeTime \u2205readTime \u2205 Size \u2205 Sz-Won wins\n" ));
24 result <<
"-------------------------------------------------------------------\n";
28 fmt.
Format( sizeWhenWon,
"{:f5.1}%",
35 fmt.
Format( avgReadTime,
"{:>11,}",
41 "{:13} {:>8,} {:>11} {:f5.1}% {:>6} {:f3.0}% ({:4})\n"
42 , ToBitwiseEnumeration<Algorithm>( algoNo )
59 "Error in ArrayCompressor::ExecutionStats: #algo wins do not sum up to #compressions: {} != ",
62 result <<
" -----------------------------------------------------------\n";
64 fmt.
Format( result,
" Totals:{:>7,} {:>11,} {:f5.1}% {:f5.1}%\n"
#define ALIB_LOCK_RECURSIVE_WITH(lock)
#define ALIB_ASSERT_ERROR(cond, domain,...)
#define ALIB_BOXING_VTABLE_DEFINE(TMapped, Identifier)
static constexpr int NumberOfAlgorithms
The number of algorithms implemented.
format::Formatter Formatter
Type alias in namespace #"%alib".
strings::TString< character > String
Type alias in namespace #"%alib".
LocalString< 128 > String128
Type alias name for #"TLocalString;TLocalString<character,128>".
strings::TAString< character, lang::HeapAllocator > AString
Type alias in namespace #"%alib".
int ctdCompressions
The number of executed compressions.
size_t sumUnCompressedWon[NumberOfAlgorithms]
size_t sumCompressed[NumberOfAlgorithms]
For each algorithm, the sum of resulting bytes of all compressions performed.
int ctdWins[NumberOfAlgorithms]
Ticks::Duration readTimes[NumberOfAlgorithms]
The overall decompression time of each algorithm.
size_t sumCompressedWon[NumberOfAlgorithms]
int ctdReads[NumberOfAlgorithms]
The number of measured decompression runs of each algorithm.
size_t sumUncompressed
The overall given array data to compress.
Ticks::Duration writeTimes[NumberOfAlgorithms]
The overall compression time of each algorithm.