Open EgorBot opened 4 days ago
linux_cobalt100
BenchmarkDotNet v0.14.0, Ubuntu 22.04.5 LTS (Jammy Jellyfish)
cobalt100
DefaultJob : .NET 9.0.0 (9.0.24.52809), Arm64 RyuJIT AdvSIMD
Method | Mean | Error |
---|---|---|
WB_Gen0 | 3.673 ms | 0.0011 ms |
WB_Gen2 | 3.672 ms | 0.0002 ms |
cc @EgorBo (agent_logs.txt)
linux_milano
BenchmarkDotNet v0.14.0, Ubuntu 22.04.5 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
DefaultJob : .NET 9.0.0 (9.0.24.52809), X64 RyuJIT AVX2
Method | Mean | Error |
---|---|---|
WB_Gen0 | 3.401 ms | 0.0012 ms |
WB_Gen2 | 2.782 ms | 0.0006 ms |
cc @EgorBo (agent_logs.txt)
Processing https://github.com/dotnet/runtime/issues/106051#issuecomment-2490581072 command:
Command
-linux_azure_cobalt100 -linux_azure_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)