diff --git a/perf/Benchmark/Benchmark.sln b/perf/Benchmark/Benchmark.sln new file mode 100644 index 0000000..c543273 --- /dev/null +++ b/perf/Benchmark/Benchmark.sln @@ -0,0 +1,56 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.002.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Benchmark", "Benchmark.csproj", "{EF86114B-A352-49E2-9990-C4D913DDCC4B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "bin", "bin", "{F703C0C2-33FA-4146-BDE9-46474F920726}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Release", "Release", "{8F4E1433-6E15-4571-9FFE-3E1A6D23F64B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "net6.0", "net6.0", "{D4227E24-FB7C-4173-A8F6-50AED38E3EDA}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BenchmarkDotNet.Autogenerated", "bin\Release\net6.0\26cc8179-cf72-4401-b04b-2c4cade2f3d1\BenchmarkDotNet.Autogenerated.csproj", "{BD17CAEE-0699-495E-BD49-2ACA8EEA9CE6}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BenchmarkDotNet.Autogenerated (1)", "bin\Release\net6.0\5efc9492-d009-498a-a07b-7bd801e21789\BenchmarkDotNet.Autogenerated.csproj", "{B361378B-84FB-474B-BF7C-6027FFE50EC0}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BenchmarkDotNet.Autogenerated (2)", "bin\Release\net6.0\63a512e5-69b2-440d-ac1b-52f1f5ddc031\BenchmarkDotNet.Autogenerated.csproj", "{9E535F6E-428D-42EC-93AE-2595FA15EC10}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {EF86114B-A352-49E2-9990-C4D913DDCC4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EF86114B-A352-49E2-9990-C4D913DDCC4B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EF86114B-A352-49E2-9990-C4D913DDCC4B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EF86114B-A352-49E2-9990-C4D913DDCC4B}.Release|Any CPU.Build.0 = Release|Any CPU + {BD17CAEE-0699-495E-BD49-2ACA8EEA9CE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BD17CAEE-0699-495E-BD49-2ACA8EEA9CE6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BD17CAEE-0699-495E-BD49-2ACA8EEA9CE6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BD17CAEE-0699-495E-BD49-2ACA8EEA9CE6}.Release|Any CPU.Build.0 = Release|Any CPU + {B361378B-84FB-474B-BF7C-6027FFE50EC0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B361378B-84FB-474B-BF7C-6027FFE50EC0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B361378B-84FB-474B-BF7C-6027FFE50EC0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B361378B-84FB-474B-BF7C-6027FFE50EC0}.Release|Any CPU.Build.0 = Release|Any CPU + {9E535F6E-428D-42EC-93AE-2595FA15EC10}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9E535F6E-428D-42EC-93AE-2595FA15EC10}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9E535F6E-428D-42EC-93AE-2595FA15EC10}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9E535F6E-428D-42EC-93AE-2595FA15EC10}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {8F4E1433-6E15-4571-9FFE-3E1A6D23F64B} = {F703C0C2-33FA-4146-BDE9-46474F920726} + {D4227E24-FB7C-4173-A8F6-50AED38E3EDA} = {8F4E1433-6E15-4571-9FFE-3E1A6D23F64B} + {BD17CAEE-0699-495E-BD49-2ACA8EEA9CE6} = {D4227E24-FB7C-4173-A8F6-50AED38E3EDA} + {B361378B-84FB-474B-BF7C-6027FFE50EC0} = {D4227E24-FB7C-4173-A8F6-50AED38E3EDA} + {9E535F6E-428D-42EC-93AE-2595FA15EC10} = {D4227E24-FB7C-4173-A8F6-50AED38E3EDA} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {FCE03FF1-2EB6-4ED4-A2AA-F86A4CCA3503} + EndGlobalSection +EndGlobal diff --git a/perf/Benchmark/Benchmarks/CompressToBytes.cs b/perf/Benchmark/Benchmarks/CompressToBytes.cs index 0a67379..b6f6795 100644 --- a/perf/Benchmark/Benchmarks/CompressToBytes.cs +++ b/perf/Benchmark/Benchmarks/CompressToBytes.cs @@ -21,10 +21,10 @@ public class CompressToBytes public void SystemIoCompressionBrotliToBytes() => Zaabee.SystemIoCompression.BrotliHelper.Compress(Consts.RawBytes); [Benchmark] - public void SystemIoCompressionSharpZipLibDeflateToBytes() => Zaabee.SystemIoCompression.DeflateHelper.Compress(Consts.RawBytes); + public void SystemIoCompressionDeflateToBytes() => Zaabee.SystemIoCompression.DeflateHelper.Compress(Consts.RawBytes); [Benchmark] - public void SystemIoCompressionSharpZipLibGzipToBytes() => Zaabee.SystemIoCompression.GzipHelper.Compress(Consts.RawBytes); + public void SystemIoCompressionGzipToBytes() => Zaabee.SystemIoCompression.GzipHelper.Compress(Consts.RawBytes); [Benchmark] public void Lz4ToBytes() => Zaabee.LZ4.Lz4Helper.Compress(Consts.RawBytes); diff --git a/perf/Benchmark/Benchmarks/CompressToStream.cs b/perf/Benchmark/Benchmarks/CompressToStream.cs index 4b26f10..d85e8f6 100644 --- a/perf/Benchmark/Benchmarks/CompressToStream.cs +++ b/perf/Benchmark/Benchmarks/CompressToStream.cs @@ -24,7 +24,7 @@ public class CompressToStream public void SystemIoCompressionDeflateToStream() => Zaabee.SystemIoCompression.DeflateHelper.Compress(Consts.RawStream, new MemoryStream()); [Benchmark] - public void SystemIoCompressionToStream() => Zaabee.SystemIoCompression.GzipHelper.Compress(Consts.RawStream, new MemoryStream()); + public void SystemIoCompressionGzipToStream() => Zaabee.SystemIoCompression.GzipHelper.Compress(Consts.RawStream, new MemoryStream()); [Benchmark] public void Lz4ToStream() => Zaabee.LZ4.Lz4Helper.Compress(Consts.RawStream, new MemoryStream());