BenchmarkCommandBuilder Class

Summary

Builder for BenchmarkCommand.
graph BT Type-->Base0["BaseOutputBuilder<BenchmarkCommandBuilder, IBenchmarkOutput>"] Base0-->Base1["object"] Type["BenchmarkCommandBuilder"] class Type type-node

Syntax

public sealed class BenchmarkCommandBuilder : 
    BaseOutputBuilder<BenchmarkCommandBuilder, IBenchmarkOutput>

Examples

Task("DoBenchmark")
    .Does(() =>
{
    SevenZip(m => m
        .InBenchmarkMode()
        .WithMethod("*")
        .WithNumberOfIterations(2)
        .WithCommandOutput(o =>
        {
            Information("7Zip version is:" + o.Information);
            Information("Benchmark results:");
            Information(o.Benchmark);
        }));
});

Properties

Name Value Summary
OutputCommand BaseOutputCommand<IBenchmarkOutput>
Gets the output command.

Methods

Name Value Summary
WithDictionarySize(int) BenchmarkCommandBuilder
Sets the size of the dictionary.
WithMethod(string) BenchmarkCommandBuilder
Sets the method.
WithNumberOfIterations(int) BenchmarkCommandBuilder
Sets the number of iterations.
WithNumberOfThreads(int) BenchmarkCommandBuilder
Sets the number of threads.

See Also

GitHub Discussion