diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..37ea066 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,25 @@ +root = true + +############################### +# Core EditorConfig Options # +############################### + +# All files +[*] +indent_style = space +charset = utf-8 + +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj,props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct,proto,json}] +indent_size = 2 + +[*.cs] +indent_size = 4 +dotnet_sort_system_directives_first = true + +# Wrapping preferences +csharp_preserve_single_line_statements = false +csharp_preserve_single_line_blocks = true + +# +resharper_csharp_space_before_trailing_comment = true +resharper_csharp_space_after_operator_keyword = true diff --git a/DotCompressorBenchmark.sln b/DotCompressorBenchmark.sln index 480fa7e..db515ba 100644 --- a/DotCompressorBenchmark.sln +++ b/DotCompressorBenchmark.sln @@ -7,6 +7,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{37B176A6-F46 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotCompressorBenchmark.Tools", "src\DotCompressorBenchmark.Tools\DotCompressorBenchmark.Tools.csproj", "{9044992E-5145-4719-9841-6AB2CF9CC999}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dcbench", "src\dcbench\dcbench.csproj", "{199C649E-9FD2-4ED0-A721-C12528B489B9}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -20,8 +22,13 @@ Global {9044992E-5145-4719-9841-6AB2CF9CC999}.Debug|Any CPU.Build.0 = Debug|Any CPU {9044992E-5145-4719-9841-6AB2CF9CC999}.Release|Any CPU.ActiveCfg = Release|Any CPU {9044992E-5145-4719-9841-6AB2CF9CC999}.Release|Any CPU.Build.0 = Release|Any CPU + {199C649E-9FD2-4ED0-A721-C12528B489B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {199C649E-9FD2-4ED0-A721-C12528B489B9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {199C649E-9FD2-4ED0-A721-C12528B489B9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {199C649E-9FD2-4ED0-A721-C12528B489B9}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution {9044992E-5145-4719-9841-6AB2CF9CC999} = {37B176A6-F467-4F2B-92E2-A8E966AA7E41} + {199C649E-9FD2-4ED0-A721-C12528B489B9} = {37B176A6-F467-4F2B-92E2-A8E966AA7E41} EndGlobalSection EndGlobal diff --git a/README.md b/README.md index 0b2c538..f1cb534 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,9 @@ ## Introduction dcbench is an in-memory benchmark of .net compressors -## Usage: DotCompressorBenchmark.Tools +## Usage: dcbench ```shell +$ dotnet tool install --global dcbench $ ./dcbench --help dcbench: .net compressor benchmark tool 2023.11.11 Copyright (c) Choi Ikpil(ikpil@naver.com) diff --git a/src/DotCompressorBenchmark.Tools/DotCompressorBenchmark.Tools.csproj b/src/DotCompressorBenchmark.Tools/DotCompressorBenchmark.Tools.csproj index 1abf338..7bd1951 100644 --- a/src/DotCompressorBenchmark.Tools/DotCompressorBenchmark.Tools.csproj +++ b/src/DotCompressorBenchmark.Tools/DotCompressorBenchmark.Tools.csproj @@ -1,8 +1,6 @@ - Exe - dcbench net6.0;net7.0;net8.0 diff --git a/src/DotCompressorBenchmark.Tools/Program.cs b/src/dcbench/Program.cs similarity index 98% rename from src/DotCompressorBenchmark.Tools/Program.cs rename to src/dcbench/Program.cs index c2d58ef..812bed5 100644 --- a/src/DotCompressorBenchmark.Tools/Program.cs +++ b/src/dcbench/Program.cs @@ -25,8 +25,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE using System; using System.Collections.Generic; using System.IO; - -namespace DotCompressorBenchmark.Tools; +using DotCompressorBenchmark.Tools; public static class Program { diff --git a/src/dcbench/dcbench.csproj b/src/dcbench/dcbench.csproj new file mode 100644 index 0000000..5f04b32 --- /dev/null +++ b/src/dcbench/dcbench.csproj @@ -0,0 +1,16 @@ + + + + Exe + dcbench + dcbench + true + dcbench + net6.0;net7.0;net8.0 + + + + + + +