Enhanced C#
Language of your choice: library documentation
Properties | List of all members
Loyc.MiniTest.BenchmarkAttribute Class Reference

Marks a benchmark test, which exists to test performance. Benchmark tests are often run multiple times to obtain an average running time. More...


Source file:
Inheritance diagram for Loyc.MiniTest.BenchmarkAttribute:
Loyc.MiniTest.TestAttribute

Remarks

Marks a benchmark test, which exists to test performance. Benchmark tests are often run multiple times to obtain an average running time.

This attribute does not exist in NUnit.

Properties

int? RepeatForMs [get, set]
 Gets or sets the recommended minimum length of time to run the test. The test runner will run the test repeatedly until the total time elapsed exceeds this number. More...
 
int? MinTrials [get, set]
 Gets or sets the recommended minimum number of times to run the benchmark in order to get an average. If this property is left at the default value (null), the test runner can decide. More...
 
- Properties inherited from Loyc.MiniTest.TestAttribute
string Description [get, set]
 Descriptive text for this test More...
 
bool? AllowParallel [get, set]
 Indicates whether this test can be run in parallel with other tests in different test fixtures. More...
 
int MaxParallelThreads [get, set]
 
object Fails [get, set]
 Setting this property is used to indicate that the test is known to fail. It is used to mark tests that should be fixed eventually, but will not be fixed immediately. More...
 

Property Documentation

◆ MinTrials

int? Loyc.MiniTest.BenchmarkAttribute.MinTrials
getset

Gets or sets the recommended minimum number of times to run the benchmark in order to get an average. If this property is left at the default value (null), the test runner can decide.

If RepeatForMs is also specified, the number of trials can be increased to reach the requested running time.

◆ RepeatForMs

int? Loyc.MiniTest.BenchmarkAttribute.RepeatForMs
getset

Gets or sets the recommended minimum length of time to run the test. The test runner will run the test repeatedly until the total time elapsed exceeds this number.