Skip to content

Commit

Permalink
fix: output bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Dec 5, 2023
1 parent 8d9cc0d commit 60ba801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DotCompressorBenchmark.Tools/BenchmarkLZMA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/DotCompressorBenchmark.Tools/BenchmarkZLib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 60ba801

Please sign in to comment.