mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added 'benchmark' command to benchmark checksum and hashing
algorithms.
This commit is contained in:
@@ -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!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user