Skip to content

Commit 3ad15fa

Browse files
committed
Update benchmark toolchain from .NET 8 to .NET 10
1 parent 5852c9a commit 3ad15fa

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

src/FirebirdSql.Data.FirebirdClient.Benchmarks/BenchmarkConfig.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,34 @@
1919
using BenchmarkDotNet.Diagnosers;
2020
using BenchmarkDotNet.Jobs;
2121
using BenchmarkDotNet.Toolchains.CsProj;
22+
using BenchmarkDotNet.Toolchains.DotNetCli;
2223
using BenchmarkDotNet.Validators;
2324

2425
namespace FirebirdSql.Data.FirebirdClient.Benchmarks;
2526

2627
class BenchmarkConfig : ManualConfig
2728
{
29+
static readonly IToolchain Net100Toolchain =
30+
CsProjCoreToolchain.From(new NetCoreAppSettings("net10.0", null, ".NET 10"));
31+
2832
public BenchmarkConfig()
2933
{
3034
var baseJob = Job.Default
3135
.WithWarmupCount(3);
3236

3337
AddJob(
3438
baseJob
35-
.WithToolchain(CsProjCoreToolchain.NetCoreApp80)
39+
.WithToolchain(Net100Toolchain)
3640
.WithCustomBuildConfiguration("ReleaseNuGet")
37-
.WithId("NuGet80")
41+
.WithId("NuGet100")
3842
.AsBaseline()
3943
);
4044

4145
AddJob(
4246
baseJob
43-
.WithToolchain(CsProjCoreToolchain.NetCoreApp80)
47+
.WithToolchain(Net100Toolchain)
4448
.WithCustomBuildConfiguration("Release")
45-
.WithId("Core80")
49+
.WithId("Core100")
4650
);
4751

4852
AddDiagnoser(MemoryDiagnoser.Default);

0 commit comments

Comments
 (0)