Go to the source code of this file.
|
Frame::Ptr | frame_init (const size_t payload) |
|
void | verify_eq (const Buffer &b1, const Buffer &b2) |
|
void | test (const std::string &filename, Compress &compressor, Compress &decompressor, const Frame &frame, const size_t block_size, const size_t n_compress, const size_t n_expand_per_compress, size_t &bytes, size_t &compress_bytes) |
|
void | test_with_corpus (Compress &compressor, Compress &decompressor, const Frame &frame, const size_t block_size, const size_t n_compress, const size_t n_expand_per_compress, size_t &bytes, size_t &compress_bytes) |
|
void | runTest (comppair alg, bool verbose=false) |
|
◆ BLOCK_SIZE
◆ N_COMPRESS
◆ N_EXPAND
To test and compare speed of the decompression algorithms define N_EXPAND to be more than 1 by either editing this define or by adding a -DN_EXPAND=1000 or -DN_COMPRESS=1000 for the compression speed in the CmakeLists and looks at the time the unit test take for the different combinations.
Definition at line 30 of file test_comp.cpp.
◆ SUPPORT_SWAP
#define SUPPORT_SWAP false |
◆ comppair
◆ frame_init()
◆ runTest()
void runTest |
( |
comppair |
alg, |
|
|
bool |
verbose = false |
|
) |
| |
◆ test()
void test |
( |
const std::string & |
filename, |
|
|
Compress & |
compressor, |
|
|
Compress & |
decompressor, |
|
|
const Frame & |
frame, |
|
|
const size_t |
block_size, |
|
|
const size_t |
n_compress, |
|
|
const size_t |
n_expand_per_compress, |
|
|
size_t & |
bytes, |
|
|
size_t & |
compress_bytes |
|
) |
| |
◆ test_with_corpus()
void test_with_corpus |
( |
Compress & |
compressor, |
|
|
Compress & |
decompressor, |
|
|
const Frame & |
frame, |
|
|
const size_t |
block_size, |
|
|
const size_t |
n_compress, |
|
|
const size_t |
n_expand_per_compress, |
|
|
size_t & |
bytes, |
|
|
size_t & |
compress_bytes |
|
) |
| |
◆ verify_eq()