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:
@@ -236,6 +236,15 @@ namespace DiscImageChef
|
||||
{
|
||||
}
|
||||
|
||||
public class BenchmarkSubOptions : CommonSubOptions
|
||||
{
|
||||
[Option('b', "block-size", Required = false, DefaultValue = (int)512, HelpText = "Block size.")]
|
||||
public int BlockSize { get; set; }
|
||||
|
||||
[Option('s', "buffer-size", Required = false, DefaultValue = (int)128, HelpText = "Buffer size in mebibytes.")]
|
||||
public int BufferSize { get; set; }
|
||||
}
|
||||
|
||||
public class Options
|
||||
{
|
||||
public Options()
|
||||
@@ -250,6 +259,7 @@ namespace DiscImageChef
|
||||
DecodeVerb = new DecodeSubOptions();
|
||||
DeviceInfoVerb = new DeviceInfoSubOptions();
|
||||
MediaInfoVerb = new MediaInfoSubOptions();
|
||||
BenchmarkInfoVerb = new BenchmarkSubOptions();
|
||||
}
|
||||
|
||||
[VerbOption("analyze", HelpText = "Analyzes a disc image and searches for partitions and/or filesystems.")]
|
||||
@@ -282,6 +292,9 @@ namespace DiscImageChef
|
||||
[VerbOption("media-info", HelpText = "Gets information about the media inserted on a device.")]
|
||||
public MediaInfoSubOptions MediaInfoVerb { get; set; }
|
||||
|
||||
[VerbOption("benchmark", HelpText = "Benchmarks hashing and entropy calculation.")]
|
||||
public BenchmarkSubOptions BenchmarkInfoVerb { get; set; }
|
||||
|
||||
[HelpVerbOption]
|
||||
public string DoHelpForVerb(string verbName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user