-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Expand file tree
/
Copy pathIntroJoin.cs
More file actions
33 lines (28 loc) · 754 Bytes
/
IntroJoin.cs
File metadata and controls
33 lines (28 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System.Threading;
using BenchmarkDotNet.Attributes;
namespace BenchmarkDotNet.Samples
{
// Run BenchmarkSwitcher with arguments: "--join --category=IntroJoinA"
[DryJob]
[UseLocalJobOnly]
public class IntroJoin1
{
[Benchmark]
[BenchmarkCategory("IntroJoinA")]
public void A() => Thread.Sleep(10);
[Benchmark]
[BenchmarkCategory("IntroJoinB")]
public void B() => Thread.Sleep(10);
}
[DryJob]
[UseLocalJobOnly]
public class IntroJoin2
{
[Benchmark]
[BenchmarkCategory("IntroJoinA")]
public void A() => Thread.Sleep(10);
[Benchmark]
[BenchmarkCategory("IntroJoinB")]
public void B() => Thread.Sleep(10);
}
}