using Api; using BenchmarkDotNet.Configs; using BenchmarkDotNet.Environments; using BenchmarkDotNet.Jobs; using BenchmarkDotNet.Running; var connectionString = Environment.GetEnvironmentVariable("MNW220_DB") ?? "Host=127.0.0.1;Port=5438;Database=orders;Username=mnw220;Password=mnw220"; // seed and dump-sql also run from here, so this one project is enough to reproduce the issue. if (args is ["seed"]) { await Seeder.RunAsync(connectionString); return; } if (args is ["dump-sql", var path]) { await SqlDump.RunAsync(connectionString, path); return; } // EF Core 10 on .NET 10 is the baseline, EF Core 11 on .NET 11 the comparison. var config = DefaultConfig.Instance .AddJob(Job.Default.WithRuntime(CoreRuntime.Core10_0).WithId("EF 10").AsBaseline()) .AddJob(Job.Default.WithRuntime(CoreRuntime.Core11_0).WithId("EF 11")); BenchmarkRunner.Run(config, args);