diff --git a/AaruBenchmark/Benchs.cs b/AaruBenchmark/Benchs.cs index d169f00..1ccd00a 100644 --- a/AaruBenchmark/Benchs.cs +++ b/AaruBenchmark/Benchs.cs @@ -1,4 +1,5 @@ using AaruBenchmark.Checksums; +using AaruBenchmark.Compression; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Jobs; @@ -8,23 +9,23 @@ namespace AaruBenchmark public class GzipBenchs { [Benchmark] - public void SharpCompress() => AaruBenchmark.SharpCompress.Gzip(); + public void SharpCompress() => Compression.SharpCompress.Gzip(); [Benchmark(Baseline = true)] public void DotNetRuntime() => NetRuntime.Gzip(); [Benchmark] - public void DotNetZip() => AaruBenchmark.DotNetZip.Gzip(); + public void DotNetZip() => Compression.DotNetZip.Gzip(); } [SimpleJob(RuntimeMoniker.Net60)] public class Bzip2Benchs { [Benchmark(Baseline = true)] - public void SharpCompress() => AaruBenchmark.SharpCompress.Bzip2(); + public void SharpCompress() => Compression.SharpCompress.Bzip2(); [Benchmark] - public void DotNetZip() => AaruBenchmark.DotNetZip.Bzip2(); + public void DotNetZip() => Compression.DotNetZip.Bzip2(); } [SimpleJob(RuntimeMoniker.Net60)] diff --git a/AaruBenchmark/Checksums/RHash.cs b/AaruBenchmark/Checksums/RHash.cs index 3860ed1..7dfc7b8 100644 --- a/AaruBenchmark/Checksums/RHash.cs +++ b/AaruBenchmark/Checksums/RHash.cs @@ -68,7 +68,6 @@ namespace AaruBenchmark.Checksums public static void Crc32() { byte[] data = new byte[1048576]; - uint s = 0; byte[] hash = new byte[4]; var fs = new FileStream(Path.Combine(Program.Folder, "random"), FileMode.Open, FileAccess.Read); @@ -102,7 +101,6 @@ namespace AaruBenchmark.Checksums public static void Md5() { byte[] data = new byte[1048576]; - uint s = 0; byte[] hash = new byte[16]; var fs = new FileStream(Path.Combine(Program.Folder, "random"), FileMode.Open, FileAccess.Read); @@ -136,7 +134,6 @@ namespace AaruBenchmark.Checksums public static void Sha1() { byte[] data = new byte[1048576]; - uint s = 0; byte[] hash = new byte[20]; var fs = new FileStream(Path.Combine(Program.Folder, "random"), FileMode.Open, FileAccess.Read); @@ -170,7 +167,6 @@ namespace AaruBenchmark.Checksums public static void Sha256() { byte[] data = new byte[1048576]; - uint s = 0; byte[] hash = new byte[32]; var fs = new FileStream(Path.Combine(Program.Folder, "random"), FileMode.Open, FileAccess.Read); @@ -204,7 +200,6 @@ namespace AaruBenchmark.Checksums public static void Sha384() { byte[] data = new byte[1048576]; - uint s = 0; byte[] hash = new byte[48]; var fs = new FileStream(Path.Combine(Program.Folder, "random"), FileMode.Open, FileAccess.Read); @@ -238,7 +233,6 @@ namespace AaruBenchmark.Checksums public static void Sha512() { byte[] data = new byte[1048576]; - uint s = 0; byte[] hash = new byte[64]; var fs = new FileStream(Path.Combine(Program.Folder, "random"), FileMode.Open, FileAccess.Read); diff --git a/AaruBenchmark/DotNetZip.cs b/AaruBenchmark/Compression/DotNetZip.cs similarity index 98% rename from AaruBenchmark/DotNetZip.cs rename to AaruBenchmark/Compression/DotNetZip.cs index c78e63b..416a4e0 100644 --- a/AaruBenchmark/DotNetZip.cs +++ b/AaruBenchmark/Compression/DotNetZip.cs @@ -2,7 +2,7 @@ using System.IO; using Ionic.BZip2; using Ionic.Zlib; -namespace AaruBenchmark +namespace AaruBenchmark.Compression { public static class DotNetZip { diff --git a/AaruBenchmark/NetRuntime.cs b/AaruBenchmark/Compression/NetRuntime.cs similarity index 96% rename from AaruBenchmark/NetRuntime.cs rename to AaruBenchmark/Compression/NetRuntime.cs index ee82e67..4a16ce8 100644 --- a/AaruBenchmark/NetRuntime.cs +++ b/AaruBenchmark/Compression/NetRuntime.cs @@ -1,7 +1,7 @@ using System.IO; using System.IO.Compression; -namespace AaruBenchmark +namespace AaruBenchmark.Compression { public static class NetRuntime { diff --git a/AaruBenchmark/SharpCompress.cs b/AaruBenchmark/Compression/SharpCompress.cs similarity index 98% rename from AaruBenchmark/SharpCompress.cs rename to AaruBenchmark/Compression/SharpCompress.cs index bf78a04..aa460be 100644 --- a/AaruBenchmark/SharpCompress.cs +++ b/AaruBenchmark/Compression/SharpCompress.cs @@ -3,7 +3,7 @@ using SharpCompress.Compressors; using SharpCompress.Compressors.BZip2; using SharpCompress.Compressors.Deflate; -namespace AaruBenchmark +namespace AaruBenchmark.Compression { public static class SharpCompress {