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 #168

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

EgorBot for EgorBo in #106051 #168

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

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_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

BDN_Artifacts.zip

cc @EgorBo (agent_logs.txt)

@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, 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

BDN_Artifacts.zip

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