Added 'benchmark' command to benchmark checksum and hashing

algorithms.
This commit is contained in:
2015-11-30 22:28:42 +00:00
parent 0485b57642
commit 38115beabd
5 changed files with 794 additions and 2 deletions

View File

@@ -162,6 +162,14 @@ namespace DiscImageChef
DicConsole.VerboseWriteLineEvent += System.Console.WriteLine;
Commands.MediaInfo.doMediaInfo(MediaInfoOptions);
break;
case "benchmark":
BenchmarkSubOptions BenchmarkOptions = (BenchmarkSubOptions)invokedVerbInstance;
if (BenchmarkOptions.Debug)
DicConsole.DebugWriteLineEvent += System.Console.Error.WriteLine;
if (BenchmarkOptions.Verbose)
DicConsole.VerboseWriteLineEvent += System.Console.WriteLine;
Commands.Benchmark.doBenchmark(BenchmarkOptions);
break;
default:
throw new ArgumentException("Should never arrive here!");
}