Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Apr 14, 2024
1 parent 9e49af0 commit 69ef3c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ namespace Pure.DI.Benchmarks.Tests;

using System.Diagnostics.CodeAnalysis;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Order;
using Moq;

[SuppressMessage("Performance", "CA1822:Пометьте члены как статические")]
[Orderer(SummaryOrderPolicy.FastestToSlowest)]
[MemoryDiagnoser]
[SuppressMessage("Performance", "CA1822:Mark members as static")]
public class AddDisposableBenchmark
{
private const int Count = 128;
Expand Down
3 changes: 3 additions & 0 deletions benchmarks/Pure.DI.Benchmarks/Tests/ResolveBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ namespace Pure.DI.Benchmarks.Tests;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Order;

[Orderer(SummaryOrderPolicy.FastestToSlowest)]
[MemoryDiagnoser]
[SuppressMessage("Performance", "CA1822:Mark members as static")]
[SuppressMessage("Performance", "CA1859:Use concrete types when possible for improved performance")]
public class ResolveBenchmark
Expand Down
2 changes: 0 additions & 2 deletions build/PerformanceTestsTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ public async Task<BuildStatus> RunAsync(CancellationToken cancellationToken)
.WithArgs(
// Add Json exporter
"--exporters", "JSON",
// Use Memory Diagnoser to get GC stats
"-m",
"--artifacts", tempDirectory,
"--", "--filter")
.AddArgs(Filters.Select(filter => filter).ToArray())
Expand Down

0 comments on commit 69ef3c4

Please sign in to comment.