diff --git a/perf/Benchmark/Benchmark.csproj b/perf/Benchmark/Benchmark.csproj index fe5bc7b..4670cc3 100644 --- a/perf/Benchmark/Benchmark.csproj +++ b/perf/Benchmark/Benchmark.csproj @@ -17,6 +17,7 @@ + diff --git a/perf/Benchmark/Benchmarks/CompressToBytes.cs b/perf/Benchmark/Benchmarks/CompressToBytes.cs index 166d12d..3793399 100644 --- a/perf/Benchmark/Benchmarks/CompressToBytes.cs +++ b/perf/Benchmark/Benchmarks/CompressToBytes.cs @@ -20,6 +20,9 @@ public class CompressToBytes [Benchmark] public void LzmaToBytes() => LzmaHelper.Compress(Consts.RawBytes); + [Benchmark] + public void SnappyToBytes() => SnappyHelper.Compress(Consts.RawBytes); + [Benchmark] public void XzToBytes() => XzHelper.Compress(Consts.RawBytes); diff --git a/perf/Benchmark/Benchmarks/CompressToStream.cs b/perf/Benchmark/Benchmarks/CompressToStream.cs index a7b1f1a..2bb0fca 100644 --- a/perf/Benchmark/Benchmarks/CompressToStream.cs +++ b/perf/Benchmark/Benchmarks/CompressToStream.cs @@ -20,6 +20,9 @@ public class CompressToStream [Benchmark] public void LzmaToStream() => LzmaHelper.Compress(Consts.RawStream, new MemoryStream()); + [Benchmark] + public void SnappyToStream() => SnappyHelper.Compress(Consts.RawStream, new MemoryStream()); + [Benchmark] public void XzToStream() => XzHelper.Compress(Consts.RawStream, new MemoryStream()); diff --git a/perf/Benchmark/Benchmarks/DecompressFromBytes.cs b/perf/Benchmark/Benchmarks/DecompressFromBytes.cs index 9d1e9df..bceeb0a 100644 --- a/perf/Benchmark/Benchmarks/DecompressFromBytes.cs +++ b/perf/Benchmark/Benchmarks/DecompressFromBytes.cs @@ -28,6 +28,9 @@ public class DecompressFromBytes [Benchmark] public void LzmaFromBytes() => LzmaHelper.Decompress(LzmaCompressBytes); + [Benchmark] + public void SnappyFromBytes() => SnappyHelper.Decompress(XzCompressBytes); + [Benchmark] public void XzFromBytes() => XzHelper.Decompress(XzCompressBytes); diff --git a/perf/Benchmark/Benchmarks/DecompressFromStream.cs b/perf/Benchmark/Benchmarks/DecompressFromStream.cs index cf0a763..98e2966 100644 --- a/perf/Benchmark/Benchmarks/DecompressFromStream.cs +++ b/perf/Benchmark/Benchmarks/DecompressFromStream.cs @@ -28,6 +28,9 @@ public class DecompressFromStream [Benchmark] public void LzmaFromStream() => LzmaHelper.Decompress(LzmaCompressStream, new MemoryStream()); + [Benchmark] + public void SnappyFromStream() => SnappyHelper.Decompress(XzCompressStream, new MemoryStream()); + [Benchmark] public void XzFromStream() => XzHelper.Decompress(XzCompressStream, new MemoryStream()); diff --git a/perf/Benchmark/GlobalUsings.cs b/perf/Benchmark/GlobalUsings.cs index 8584197..41fe6d4 100644 --- a/perf/Benchmark/GlobalUsings.cs +++ b/perf/Benchmark/GlobalUsings.cs @@ -7,5 +7,6 @@ global using Zaabee.LZ4; global using Zaabee.LZMA; global using Zaabee.SharpZipLib; +global using Zaabee.Snappy; global using Zaabee.XZ; global using Zaabee.Zstd; \ No newline at end of file