Skip to content

Commit 5324bd9

Browse files
authored
Merge pull request #4 from adamchester/benchmark-target-count
Explicitly set benchmark target count,
2 parents bf042c4 + 7f081e4 commit 5324bd9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/Serilog.Formatting.Compact.Tests/FormattingBenchmarks.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace Serilog.Formatting.Compact.Tests
99
{
10+
[Config(typeof(FormattingBenchmarksConfig))]
1011
public class FormattingBenchmarks
1112
{
1213
readonly LogEvent _evt;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using BenchmarkDotNet.Configs;
2+
using BenchmarkDotNet.Jobs;
3+
4+
namespace Serilog.Formatting.Compact.Tests
5+
{
6+
public class FormattingBenchmarksConfig : ManualConfig
7+
{
8+
public FormattingBenchmarksConfig()
9+
{
10+
this.Add(Job.Default.WithTargetCount(new Count(10)));
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)