Skip to content

Commit

Permalink
Fix method names in benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutuduxf committed Dec 6, 2023
1 parent b4588ec commit 8b45c72
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 3 deletions.
56 changes: 56 additions & 0 deletions perf/Benchmark/Benchmark.sln
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions perf/Benchmark/Benchmarks/CompressToBytes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion perf/Benchmark/Benchmarks/CompressToStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 8b45c72

Please sign in to comment.