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

Open
EgorBot opened this issue Nov 21, 2024 · 1 comment
Open

EgorBot for EgorBo in #106051 #167

EgorBot opened this issue Nov 21, 2024 · 1 comment

Comments

@EgorBot
Copy link
Owner

EgorBot commented Nov 21, 2024

Processing dotnet/runtime#106051 (comment) command:

Command

-azure_linux_cobalt100 -azure_linux_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_genoa

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