diff --git a/sandbox/Benchmark/Benchmark.csproj b/sandbox/Benchmark/Benchmark.csproj index 1cf072a..a2b4509 100644 --- a/sandbox/Benchmark/Benchmark.csproj +++ b/sandbox/Benchmark/Benchmark.csproj @@ -8,6 +8,13 @@ enable + + true + pdbonly + true + RELEASE;TRACE + + @@ -25,13 +32,26 @@ - - - - - Analyzer - false - - - + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + Analyzer + false + + + + diff --git a/sandbox/Benchmark/Config/BenchmarkConfig.cs b/sandbox/Benchmark/Config/BenchmarkConfig.cs index 4da66d9..24d93f3 100644 --- a/sandbox/Benchmark/Config/BenchmarkConfig.cs +++ b/sandbox/Benchmark/Config/BenchmarkConfig.cs @@ -28,16 +28,6 @@ public BenchmarkConfig() AddValidator(DefaultConfig.Instance.GetValidators().ToArray()); AddLogger(ConsoleLogger.Default); - // .NET 10.0 as default. - AddJob(Job.ShortRun - .WithStrategy(RunStrategy.Throughput) - .DontEnforcePowerPlan() - .WithToolchain(CsProjCoreToolchain.NetCoreApp10_0) - .WithId($"Benchmark{CsProjCoreToolchain.NetCoreApp10_0.Name}")); - } - - public BenchmarkConfig AddTargetFramework() - { // Add .NET 8.0 AddJob(Job.ShortRun .WithStrategy(RunStrategy.Throughput) @@ -52,7 +42,20 @@ public BenchmarkConfig AddTargetFramework() .WithToolchain(CsProjCoreToolchain.NetCoreApp90) .WithId($"Benchmark{CsProjCoreToolchain.NetCoreApp90.Name}")); - return this; + // .NET 10.0 as default. + AddJob(Job.ShortRun + .WithStrategy(RunStrategy.Throughput) + .DontEnforcePowerPlan() + .WithToolchain(CsProjCoreToolchain.NetCoreApp10_0) + .WithId($"Benchmark{CsProjCoreToolchain.NetCoreApp10_0.Name}")); + + // NuGet version + AddJob(Job.ShortRun + .WithStrategy(RunStrategy.Throughput) + .DontEnforcePowerPlan() + .WithToolchain(CsProjCoreToolchain.NetCoreApp10_0) + .WithCustomBuildConfiguration("NuGetCsToml") + .WithId("NuGetCsToml")); } } \ No newline at end of file diff --git a/sandbox/Benchmark/Program.cs b/sandbox/Benchmark/Program.cs index 769d51b..ac14fa2 100644 --- a/sandbox/Benchmark/Program.cs +++ b/sandbox/Benchmark/Program.cs @@ -10,8 +10,7 @@ return; #else -//var config = new BenchmarkConfig(); -var config = new BenchmarkConfig().AddTargetFramework(); +var config = new BenchmarkConfig(); var summaries = BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config).ToArray(); if (summaries.Length == 0) {