C# 클래스 PerformanceTest.Benchmark

상속: IDisposable
파일 보기 프로젝트 열기: khalidsalomao/SimpleHelpers.Net 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Benchmark() 공개 메소드

public Benchmark ( string opName ) : System
opName string
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

PrepareSystemForBenchmark() 공개 정적인 메소드

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

Start() 공개 메소드

public Start ( bool skipWarmupGC = false ) : Benchmark
skipWarmupGC bool
리턴 Benchmark

Start() 공개 정적인 메소드

public static Start ( string opName ) : Benchmark
opName string
리턴 Benchmark

Stop() 공개 메소드

public Stop ( ) : System.TimeSpan
리턴 System.TimeSpan

Time() 공개 정적인 메소드

public static Time ( string opName, System.Action action ) : System.TimeSpan
opName string
action System.Action
리턴 System.TimeSpan

Time() 공개 정적인 메소드

public static Time ( string opName, System.Action action, int loopCount, bool warmup ) : System.TimeSpan
opName string
action System.Action
loopCount int
warmup bool
리턴 System.TimeSpan

ToString() 공개 메소드

public ToString ( ) : string
리턴 string