Click or drag to resize
Benchmark Class
Benchmark class
Inheritance Hierarchy
SystemObject
  CMS.TestsBenchmark

Namespace: CMS.Tests
Assembly: CMS.Tests (in CMS.Tests.dll) Version: 9.0.0
Syntax
C#
public class Benchmark

The Benchmark type exposes the following members.

Fields
  NameDescription
Public fieldBenchmarkAction
Gets the benchmark action.
Top
Methods
  NameDescription
Public methodRun
Executes the benchmarked action a specified number of times and returns the result.
Public methodRunWithWarmup
Executes the benchmarked action a specified number of times and returns the result. Runs the action once prior to benchmarking.
Public methodStatic memberThis(Action)
Creates a new benchmark with the specified action to be benchmarked.
Public methodStatic memberThis(ActionStopwatch)
Creates a new benchmark with the specified benchmark action.
Top
See Also