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 #109428 #143

Open
EgorBot opened this issue Oct 31, 2024 · 2 comments
Open

EgorBot for EgorBo in #109428 #143

EgorBot opened this issue Oct 31, 2024 · 2 comments

Comments

@EgorBot
Copy link
Owner

EgorBot commented Oct 31, 2024

Processing dotnet/runtime#109428 (comment) command:

Command

-arm64 -profiler

using BenchmarkDotNet.Attributes;

public class Bencha
{
    static object obj = new MyClass();

    [Benchmark]
    public void Bench()
    {
        if (obj is MyClass myClass)
            myClass.DoWork();
    }
}

public class MyClass {
    public virtual void DoWork() {}
}

(EgorBot will reply in this issue)

@EgorBot
Copy link
Owner Author

EgorBot commented Oct 31, 2024

Benchmark results on Arm64

BenchmarkDotNet v0.14.0, Ubuntu 24.04 LTS (Noble Numbat)
Arm64
  Job-SGHXNH : .NET 10.0.0 (42.42.42.42424), Arm64 RyuJIT AdvSIMD
  Job-CSZJTB : .NET 10.0.0 (42.42.42.42424), Arm64 RyuJIT AdvSIMD
Method Toolchain Mean Error Ratio
Bench Main 0.0022 ns 0.0002 ns 1.01
Bench PR 0.0047 ns 0.0001 ns 2.17

BDN_Artifacts.zip

Profile for Bencha_Bench:

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

@EgorBot
Copy link
Owner Author

EgorBot commented Oct 31, 2024

cc @EgorBo (logs)

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