From 9a3edfa98f1b886440ed13e9477999cc20d67d36 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Wed, 10 Jun 2026 23:02:19 +0000 Subject: [PATCH 1/2] Fix GC ASPNet bnechmarks on Linux When running those benchmarks on Linux, we need to use different profiles. This change adds a separate ASPNetBenchmarks-Linux.csv to use as a source when generating the suite. --- .../Commands/RunCommand/BaseSuite/ASPNetBenchmarks-Linux.csv | 3 +++ .../Commands/RunCommand/CreateSuiteCommand.cs | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/Commands/RunCommand/BaseSuite/ASPNetBenchmarks-Linux.csv diff --git a/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/Commands/RunCommand/BaseSuite/ASPNetBenchmarks-Linux.csv b/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/Commands/RunCommand/BaseSuite/ASPNetBenchmarks-Linux.csv new file mode 100644 index 00000000000..ccedd5f3287 --- /dev/null +++ b/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/Commands/RunCommand/BaseSuite/ASPNetBenchmarks-Linux.csv @@ -0,0 +1,3 @@ +Legend,Base CommandLine +JsonMin_Linux, --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/json.benchmarks.yml --scenario mapaction --application.framework net8.0 --application.options.collectCounters true --profile aspnet-gold-lin --property os=linux --property arch=x64 +FortunesEf_Linux, --config https://raw.githubusercontent.com/aspnet/Benchmarks/main/scenarios/database.benchmarks.yml --scenario fortunes_ef --application.framework net8.0 --application.options.collectCounters true --profile aspnet-gold-lin --property os=linux --property arch=x64 diff --git a/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/Commands/RunCommand/CreateSuiteCommand.cs b/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/Commands/RunCommand/CreateSuiteCommand.cs index 3695aa58633..9717c6029a1 100644 --- a/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/Commands/RunCommand/CreateSuiteCommand.cs +++ b/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/Commands/RunCommand/CreateSuiteCommand.cs @@ -108,7 +108,9 @@ internal static string CreateASPNetBenchmarkSuite(InputConfiguration inputConfig // Copy over the pertinent resources. string destinationASPNetBenchmark = Path.Combine(aspnetBenchmarks, "ASPNetBenchmarks.csv"); - Core.Utilities.TryCopyFile(sourcePath: Path.Combine(_baseSuitePath, "ASPNetBenchmarks.csv"), + string sourceASPNetBenchmark = Path.Combine(_baseSuitePath, OperatingSystem.IsWindows() ? "ASPNetBenchmarks.csv" : "ASPNetBenchmarks-Linux.csv"); + + Core.Utilities.TryCopyFile(sourcePath: sourceASPNetBenchmark, destinationPath: destinationASPNetBenchmark); string outputPath = Path.Combine(inputConfiguration.output_path, "ASPNetBenchmarks"); From 6d1de49914ecb9de624ec3d37d6296b3dc08ba32 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Wed, 10 Jun 2026 23:36:42 +0000 Subject: [PATCH 2/2] Copilot feedback --- .../GC.Infrastructure/GC.Infrastructure.csproj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/GC.Infrastructure.csproj b/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/GC.Infrastructure.csproj index 94978b329c4..055948b37b5 100644 --- a/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/GC.Infrastructure.csproj +++ b/src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure/GC.Infrastructure.csproj @@ -47,6 +47,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest