private static ulong GetTotalRating( uint dictionarySize, ulong elapsedTimeEn, ulong sizeEn, ulong elapsedTimeDe, ulong inSizeDe, ulong outSizeDe) { return((LzmaBench.GetCompressRating(dictionarySize, elapsedTimeEn, sizeEn) + LzmaBench.GetDecompressRating(elapsedTimeDe, inSizeDe, outSizeDe)) / 2UL); }
private static void PrintResults( uint dictionarySize, ulong elapsedTime, ulong size, bool decompressMode, ulong secondSize) { LzmaBench.PrintValue(LzmaBench.MyMultDiv64(size, elapsedTime) / 1024UL); Console.Write(" KB/s "); LzmaBench.PrintRating(!decompressMode ? LzmaBench.GetCompressRating(dictionarySize, elapsedTime, size) : LzmaBench.GetDecompressRating(elapsedTime, size, secondSize)); }
private static void PrintResults(uint dictionarySize, ulong elapsedTime, ulong size, bool decompressMode, ulong secondSize) { ulong num = LzmaBench.MyMultDiv64(size, elapsedTime); LzmaBench.PrintValue(num / 1024uL); Console.Write(" KB/s "); ulong rating; if (decompressMode) { rating = LzmaBench.GetDecompressRating(elapsedTime, size, secondSize); } else { rating = LzmaBench.GetCompressRating(dictionarySize, elapsedTime, size); } LzmaBench.PrintRating(rating); }