C# Class PerformanceTest.Benchmark

Inheritance: IDisposable
Afficher le fichier Open project: khalidsalomao/SimpleHelpers.Net Class Usage Examples

Méthodes publiques

Méthode Description
Benchmark ( string opName ) : System
Dispose ( ) : void
PrepareSystemForBenchmark ( ) : void

Prepares the system for benchmark will force Garbage Collection to run with maximum generation and wait it to finish.

Start ( bool skipWarmupGC = false ) : Benchmark
Start ( string opName ) : Benchmark
Stop ( ) : System.TimeSpan
Time ( string opName, System.Action action ) : System.TimeSpan
Time ( string opName, System.Action action, int loopCount, bool warmup ) : System.TimeSpan
ToString ( ) : string

Method Details

Benchmark() public méthode

public Benchmark ( string opName ) : System
opName string
Résultat System

Dispose() public méthode

public Dispose ( ) : void
Résultat void

PrepareSystemForBenchmark() public static méthode

Prepares the system for benchmark will force Garbage Collection to run with maximum generation and wait it to finish.
public static PrepareSystemForBenchmark ( ) : void
Résultat void

Start() public méthode

public Start ( bool skipWarmupGC = false ) : Benchmark
skipWarmupGC bool
Résultat Benchmark

Start() public static méthode

public static Start ( string opName ) : Benchmark
opName string
Résultat Benchmark

Stop() public méthode

public Stop ( ) : System.TimeSpan
Résultat System.TimeSpan

Time() public static méthode

public static Time ( string opName, System.Action action ) : System.TimeSpan
opName string
action System.Action
Résultat System.TimeSpan

Time() public static méthode

public static Time ( string opName, System.Action action, int loopCount, bool warmup ) : System.TimeSpan
opName string
action System.Action
loopCount int
warmup bool
Résultat System.TimeSpan

ToString() public méthode

public ToString ( ) : string
Résultat string