Skip to content

Commit 80e68c1

Browse files
filzrevtimcassell
andauthored
docs: Add documentation of order policies (dotnet#2920)
* docs: add documentation for OrderPolicy * Update docs/articles/configs/orderers.md --------- Co-authored-by: Tim Cassell <cassell.timothy@gmail.com>
1 parent 4641790 commit 80e68c1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/articles/configs/orderers.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ name: Orderers
77

88
Orderers allows customizing the order of benchmark results in the summary table.
99

10+
The following built-in order policies are available.
11+
- <xref:BenchmarkDotNet.Order.SummaryOrderPolicy>
12+
- <xref:BenchmarkDotNet.Order.MethodOrderPolicy>
13+
- <xref:BenchmarkDotNet.Order.JobOrderPolicy>
14+
15+
You can also use a custom orderer by implementing the <xref:BenchmarkDotNet.Order.IOrderer> interface.
16+
1017
---
1118

1219
[!include[IntroOrderAttr](../samples/IntroOrderAttr.md)]

samples/BenchmarkDotNet.Samples/IntroOrderAttr.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace BenchmarkDotNet.Samples
66
{
7-
[Orderer(SummaryOrderPolicy.FastestToSlowest, MethodOrderPolicy.Declared)]
7+
[Orderer(SummaryOrderPolicy.FastestToSlowest, MethodOrderPolicy.Declared, jobOrderPolicy: JobOrderPolicy.Default)]
88
[DryJob]
99
public class IntroOrderAttr
1010
{

0 commit comments

Comments
 (0)