Skip to content

Commit 7f081e4

Browse files
committed
Explicitly set benchmark target count,
to avoid the situation where the build takes too long.
1 parent 3272b14 commit 7f081e4

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)