C# Class Icing.LINQPad.Diagnostics.Benchmark

Helpers for benchmarking the performance of algorithms.
ファイルを表示 Open project: benallred/Icing

Public Methods

Method Description
CompareExecutionTime ( int numberOfIterations, bool reportIndividualIterations ) : IList

Benchmarks and compares the execution time stats of the given algorithms.

CompareExecutionTime ( int numberOfIterations, bool reportIndividualIterations, IList algorithms ) : IList

Benchmarks and compares the execution time stats of the given algorithms.

Private Methods

Method Description
DumpAlgorithmStats ( Algorithm algorithm, Algorithm compareTo, bool reportIndividualIterations ) : void

Method Details

CompareExecutionTime() public static method

Benchmarks and compares the execution time stats of the given algorithms.
public static CompareExecutionTime ( int numberOfIterations, bool reportIndividualIterations ) : IList
numberOfIterations int The number of iterations to run.
reportIndividualIterations bool /// If set to true, reports individual iteration stats; if false, reports average iteration stats. /// If the algorithm runs really fast, the floating point calculations will come out to zero, so you will want to set this to false. ///
return IList

CompareExecutionTime() public static method

Benchmarks and compares the execution time stats of the given algorithms.
public static CompareExecutionTime ( int numberOfIterations, bool reportIndividualIterations, IList algorithms ) : IList
numberOfIterations int The number of iterations to run.
reportIndividualIterations bool /// If set to true, reports individual iteration stats; if false, reports average iteration stats. /// If the algorithm runs really fast, the floating point calculations will come out to zero, so you will want to set this to false. ///
algorithms IList The algorithms to compare.
return IList