Command
-azure_linux_cobalt100 -azure_linux_milano -profiler
```cs
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
public class Bench
{
static object Src = new ();
static object Dst;
static Bench() => GC.Collect();
[Benchmark]
public void WB_Gen0()
{
var src = new object();
for (int i = 0; i < 1_000_000; i++)
Dst = src;
}
[Benchmark]
public void WB_Gen2()
{
var obj = Src;
for (int i = 0; i < 1_000_000; i++)
Dst = obj;
}
}
```
Processing https://github.com/dotnet/runtime/issues/106051#issuecomment-2490569858 command:
Command
-azure_linux_cobalt100 -azure_linux_milano -profiler ```cs using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Running; BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args); public class Bench { static object Src = new (); static object Dst; static Bench() => GC.Collect(); [Benchmark] public void WB_Gen0() { var src = new object(); for (int i = 0; i < 1_000_000; i++) Dst = src; } [Benchmark] public void WB_Gen2() { var obj = Src; for (int i = 0; i < 1_000_000; i++) Dst = obj; } } ```(EgorBot will reply in this issue)