Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EgorBot for EgorBo in #106051 #169

Open
EgorBot opened this issue Nov 21, 2024 · 2 comments
Open

EgorBot for EgorBo in #106051 #169

EgorBot opened this issue Nov 21, 2024 · 2 comments

Comments

@EgorBot
Copy link
Owner

EgorBot commented Nov 21, 2024

Processing dotnet/runtime#106051 (comment) command:

Command

-linux_azure_cobalt100 -linux_azure_milano -profiler -commit main

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
Copy link
Owner Author

EgorBot commented Nov 21, 2024

Benchmark results on linux_milano

BenchmarkDotNet v0.14.0, Ubuntu 22.04.5 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 8 logical and 4 physical cores
  Job-VWNSQG : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX2
Job=Job-VWNSQG  Toolchain=CoreRun
Method Mean Error
WB_Gen0 3.402 ms 0.0035 ms
WB_Gen2 2.783 ms 0.0020 ms

BDN_Artifacts.zip

Profile for Bench_WB_Gen0:

Flame graphs: Main 🔥
Speedscope: Main
Hot asm: Main
Hot functions: Main
Counters: Main

Profile for Bench_WB_Gen2:

Flame graphs: Main 🔥
Speedscope: Main
Hot asm: Main
Hot functions: Main
Counters: Main


cc @EgorBo (agent_logs.txt)

@EgorBot
Copy link
Owner Author

EgorBot commented Nov 21, 2024

Benchmark results on linux_cobalt100

BenchmarkDotNet v0.14.0, Ubuntu 22.04.5 LTS (Jammy Jellyfish)
cobalt100
  Job-OFYVSP : .NET 10.0.0 (42.42.42.42424), Arm64 RyuJIT AdvSIMD
Job=Job-OFYVSP  Toolchain=CoreRun
Method Mean Error
WB_Gen0 3.673 ms 0.0005 ms
WB_Gen2 3.674 ms 0.0026 ms

BDN_Artifacts.zip

Profile for Bench_WB_Gen0:

Flame graphs: Main 🔥
Speedscope: Main
Hot asm: Main
Hot functions: Main
Counters: Main

Profile for Bench_WB_Gen2:

Flame graphs: Main 🔥
Speedscope: Main
Hot asm: Main
Hot functions: Main
Counters: Main


cc @EgorBo (agent_logs.txt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant