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 #111561 #234

Open
EgorBot opened this issue Jan 18, 2025 · 2 comments
Open

EgorBot for EgorBo in #111561 #234

EgorBot opened this issue Jan 18, 2025 · 2 comments

Comments

@EgorBot
Copy link
Owner

EgorBot commented Jan 18, 2025

Processing dotnet/runtime#111561 (comment) command:

Command

-arm -amd -profiler

using System.Runtime.CompilerServices;
using BenchmarkDotNet.Attributes;

public class Benchmark
{
    [Benchmark]
    public void ReturnBufferWB() => _ = Test(default);

    [MethodImpl(MethodImplOptions.NoInlining)]
    static MyStruct Test(MyStruct ms) => ms;
}

public struct MyStruct
{
    public object Fld1;
    public object Fld2;
    public object Fld3;
}

(EgorBot will reply in this issue)

@EgorBot
Copy link
Owner Author

EgorBot commented Jan 18, 2025

Benchmark results on linux_azure_genoa

BenchmarkDotNet v0.14.0, Ubuntu 24.04.1 LTS (Noble Numbat)
AMD EPYC 9V74, 1 CPU, 16 logical and 8 physical cores
  Job-JZRMAP : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
  Job-YASNON : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
Method Toolchain Mean Error Ratio
ReturnBufferWB Main 4.635 ns 0.0012 ns 1.00
ReturnBufferWB PR 5.397 ns 0.0003 ns 1.16

BDN_Artifacts.zip

Profiling for Benchmark_ReturnBufferWB:

SVG flamegraph: Main vs PR 🔥
Speedscope flamegraph: Main vs PR
Hot asm code: Main vs PR
HW counters: Main vs PR


cc @EgorBo (agent_logs.txt). EgorBot manual: link.

@EgorBot
Copy link
Owner Author

EgorBot commented Jan 18, 2025

Benchmark results on linux_azure_cobalt100

BenchmarkDotNet v0.14.0, Ubuntu 24.04.1 LTS (Noble Numbat)
azure_cobalt100
  Job-TESAZZ : .NET 10.0.0 (42.42.42.42424), Arm64 RyuJIT AdvSIMD
  Job-MNSUQE : .NET 10.0.0 (42.42.42.42424), Arm64 RyuJIT AdvSIMD
Method Toolchain Mean Error Ratio
ReturnBufferWB Main 3.724 ns 0.0042 ns 1.00
ReturnBufferWB PR 3.504 ns 0.0053 ns 0.94

BDN_Artifacts.zip

Profiling for Benchmark_ReturnBufferWB:

SVG flamegraph: Main vs PR 🔥
Speedscope flamegraph: Main vs PR
Hot asm code: Main vs PR
HW counters: Main vs PR


cc @EgorBo (agent_logs.txt). EgorBot manual: link.

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