diff --git a/src/DotCompressorBenchmark.Tools/BenchmarkLZMA.cs b/src/DotCompressorBenchmark.Tools/BenchmarkLZMA.cs index 9a7613e..f770ca4 100644 --- a/src/DotCompressorBenchmark.Tools/BenchmarkLZMA.cs +++ b/src/DotCompressorBenchmark.Tools/BenchmarkLZMA.cs @@ -33,7 +33,7 @@ public static long Compress(byte[] srcBytes, byte[] dstBytes, int level) outStream.Write(BitConverter.GetBytes((long)srcBytes.Length), 0, 8); encoder.Code(inStream, outStream, srcBytes.Length, dstBytes.Length, null); - return outStream.Position - 5 - 8; + return outStream.Position; } public static long Decompress(byte[] srcBytes, long size, byte[] dstBytes) diff --git a/src/DotCompressorBenchmark.Tools/BenchmarkZLib.cs b/src/DotCompressorBenchmark.Tools/BenchmarkZLib.cs index a93e7ed..e7c20f3 100644 --- a/src/DotCompressorBenchmark.Tools/BenchmarkZLib.cs +++ b/src/DotCompressorBenchmark.Tools/BenchmarkZLib.cs @@ -11,7 +11,7 @@ public class BenchmarkZLib : IBenchmark public BenchmarkZLib(CompressionLevel level) { _level = level; - Name = $"ZLib {_level.ToString()}"; + Name = $"zlib -{_level.ToString()}"; } public BenchmarkResult Roundtrip(string filename, byte[] srcBytes, byte[] dstBytes)