7 #include "../../../Common/Types.h"
9 #include "../../UI/Common/LoadCodecs.h"
21 CBenchInfo(): NumIterations(0) {}
26 virtual HRESULT SetEncodeResult(const CBenchInfo &info, bool final) = 0;
27 virtual HRESULT SetDecodeResult(const CBenchInfo &info, bool final) = 0;
30 UInt64 GetUsage(const CBenchInfo &benchOnfo);
31 UInt64 GetRatingPerUsage(const CBenchInfo &info, UInt64 rating);
32 UInt64 GetCompressRating(UInt32 dictionarySize, UInt64 elapsedTime, UInt64 freq, UInt64 size);
33 UInt64 GetDecompressRating(UInt64 elapsedTime, UInt64 freq, UInt64 outSize, UInt64 inSize, UInt32 numIterations);
39 UInt32 numThreads, UInt32 dictionarySize, IBenchCallback *callback);
41 const int kBenchMinDicLogSize = 18;
43 UInt64 GetBenchMemoryUsage(UInt32 numThreads, UInt32 dictionary);
45 bool CrcInternalTest();
46 HRESULT CrcBench(UInt32 numThreads, UInt32 bufferSize, UInt64 &speed);