diff --git a/benchmarks/Pure.DI.Benchmarks/Tests/AddDisposableBenchmark.cs b/benchmarks/Pure.DI.Benchmarks/Tests/AddDisposableBenchmark.cs index 65e243021..6ed51f159 100644 --- a/benchmarks/Pure.DI.Benchmarks/Tests/AddDisposableBenchmark.cs +++ b/benchmarks/Pure.DI.Benchmarks/Tests/AddDisposableBenchmark.cs @@ -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; diff --git a/benchmarks/Pure.DI.Benchmarks/Tests/ResolveBenchmark.cs b/benchmarks/Pure.DI.Benchmarks/Tests/ResolveBenchmark.cs index 4b8e2ac57..72f443088 100644 --- a/benchmarks/Pure.DI.Benchmarks/Tests/ResolveBenchmark.cs +++ b/benchmarks/Pure.DI.Benchmarks/Tests/ResolveBenchmark.cs @@ -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 diff --git a/build/PerformanceTestsTarget.cs b/build/PerformanceTestsTarget.cs index ccc96ee63..4c7490d2f 100644 --- a/build/PerformanceTestsTarget.cs +++ b/build/PerformanceTestsTarget.cs @@ -41,8 +41,6 @@ public async Task 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())