uid |
---|
BenchmarkDotNet.Samples.IntroParamsPriority |
In order to sort columns of parameters in the results table you can use the Property Priority
inside the params attribute. The priority range is [Int32.MinValue;Int32.MaxValue]
, lower priorities will appear earlier in the column order. The default priority is set to 0
.
[!code-csharpIntroParamsPriority.cs]
| Method | B | A | Mean | Error | StdDev |
|---------- |--- |---- |---------:|--------:|--------:|
| Benchmark | 10 | 100 | 115.4 ms | 0.12 ms | 0.11 ms |
- Priority BaseClass
PriorityAttribute.cs
- @docs.parameterization
- The permanent link to this sample: @BenchmarkDotNet.Samples.IntroParamsPriority