EgorBot / runtime-utils

MIT License
0 stars 1 forks source link

EgorBot for EgorBo in #106051 #167

Open EgorBot opened 1 day ago

EgorBot commented 1 day ago

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)

EgorBot commented 1 day ago

Benchmark results on linux_genoa

BDN_Artifacts.zip

cc @EgorBo (agent_logs.txt)