Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 906 Bytes

IntroParamsPriority.md

File metadata and controls

27 lines (18 loc) · 906 Bytes
uid
BenchmarkDotNet.Samples.IntroParamsPriority

Sample: 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.

Source code

[!code-csharpIntroParamsPriority.cs]

Output

|    Method |  B |   A |     Mean |   Error |  StdDev |
|---------- |--- |---- |---------:|--------:|--------:|
| Benchmark | 10 | 100 | 115.4 ms | 0.12 ms | 0.11 ms |

Links

  • Priority BaseClass PriorityAttribute.cs
  • @docs.parameterization
  • The permanent link to this sample: @BenchmarkDotNet.Samples.IntroParamsPriority