ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::bitbuffer::ac_v1::ArrayCompressor::Statistics Struct Reference

Description:

Statistic struct to collect information about the performance of different array compression approaches.

Note
While other ALib module provide similar information only in debug compilations of the library, the optional mechanics to collect statistics on array compression (based on this struct) are likewise included in the release version.

Definition at line 282 of file ac.inl.

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:

Statisticsoperator+= (const Statistics &other)
 
ALIB_DLL void Print (AString &result, const String &headline, bool printTotals)
 

Field Details:

◆ ctdCompressions

int alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::ctdCompressions =0

The number of executed compressions.

Definition at line 314 of file ac.inl.

◆ ctdReads

int alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::ctdReads[NumberOfAlgorithms] ={}

The number of measured decompression runs of each algorithm.

Definition at line 291 of file ac.inl.

◆ ctdWins

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.

Definition at line 295 of file ac.inl.

◆ readTimes

Ticks::Duration alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::readTimes[NumberOfAlgorithms] ={}

The overall decompression time of each algorithm.

Definition at line 288 of file ac.inl.

◆ sumCompressed

size_t alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::sumCompressed[NumberOfAlgorithms] ={}

For each algorithm, the sum of resulting bytes of all compressions performed.

Definition at line 298 of file ac.inl.

◆ sumCompressedWon

size_t alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::sumCompressedWon[NumberOfAlgorithms] ={}

For each algorithm, the sum of resulting bytes of those compressions where the corresponding algorithm performed best. The values sum up to the overall effective compression length.

Definition at line 303 of file ac.inl.

◆ sumUncompressed

size_t alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::sumUncompressed =0

The overall given array data to compress.

Definition at line 311 of file ac.inl.

◆ sumUnCompressedWon

size_t alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::sumUnCompressedWon[NumberOfAlgorithms] ={}

For each algorithm, the sum of original bytes of those compressions where the corresponding algorithm performed best. The values sum up to the overall uncompressed size given with sumUncompressed.

Definition at line 308 of file ac.inl.

◆ writeTimes

Ticks::Duration alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::writeTimes[NumberOfAlgorithms] ={}

The overall compression time of each algorithm.

Definition at line 285 of file ac.inl.

Method Details:

◆ operator+=()

Statistics & alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::operator+= ( const Statistics & other)
inline

Adds another statistic object to this one.

Parameters
otherThe statistics to add to this one.
Returns
A reference to this object.

Definition at line 320 of file ac.inl.

◆ Print()

void alib::bitbuffer::ac_v1::ArrayCompressor::Statistics::Print ( AString & result,
const String & headline,
bool printTotals )

Writes compression statistics to the given string buffer.

Availability
This method is included only if module ALib Format is included in the ALib Build.
Parameters
resultA string buffer to collect the dump results.
headlineA headline to integrate into the result table.
printTotalsDetermines if a summary line with summed up values should be written.

Definition at line 32 of file ac.cpp.

Here is the call graph for this function:

The documentation for this struct was generated from the following files: