-
Notifications
You must be signed in to change notification settings - Fork 1
/
WKdmWithLZOTester.hh
48 lines (34 loc) · 1.41 KB
/
WKdmWithLZOTester.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// WKdmWithLZOTester.hh
// Scott F. Kaplan -- [email protected]
// May 1998
// A tester designed to work on the Wilson-Kaplan-dm algorithm that
// re-compressed its misses with LZO, a fast Lempel-Ziv implementation
// Note that it note only performs the requested compression and
// decompression, but also performs and keeps extra statisics for its
// own experiements that measure characteristics specific to this
// algorithm.
// Prevent multiple inclusion by surrounding the header file with
// preprocessor directives.
#if !defined (_WKdmWITHLZOTESTER_HH)
#define _WKdmWITHLZOTESTER_HH
#include "CompressionAlgorithmTester.hh"
class WKdmWithLZOTester : public CompressionAlgorithmTester {
public:
// The default constructor.
WKdmWithLZOTester (char* outputFilename, const bool initUseFixedImages) :
CompressionAlgorithmTester(outputFilename, initUseFixedImages) {}
protected:
// Perform the actual tasks of timing the compression and
// decompression of a given algorithm.
virtual void performCompressionTest
(void* uncompressedData,
unsigned int uncompressedBytes,
unsigned int& returnCompressedSize,
unsigned long long& returnCompressionTime);
virtual void performDecompressionTest
(void* uncompressedData,
unsigned int uncompressedBytes,
unsigned int& returnPreDecompressionSize,
unsigned long long& returnDecompressionTime);
};
#endif // _WKdmWITHLZOTESTER_HH