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 AndyAyersMS in #109209 #138

Open
EgorBot opened this issue Oct 27, 2024 · 4 comments
Open

EgorBot for AndyAyersMS in #109209 #138

EgorBot opened this issue Oct 27, 2024 · 4 comments

Comments

@EgorBot
Copy link
Owner

EgorBot commented Oct 27, 2024

Processing dotnet/runtime#109209 (comment) command:

Command

-intel -arm64 -profiler --envvars DOTNET_JitDisasm:TestInner

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

BenchmarkSwitcher.FromAssembly(typeof(Bench).Assembly).Run(args);

public class Bench
{
    static string[] Data = new string[512];

    [Benchmark]
    public int Test() => TestInner(Data);

    [MethodImpl(MethodImplOptions.NoInlining)]
    int TestInner(ICollection<string> c) => c.Count;
}

(EgorBot will reply in this issue)

@EgorBot
Copy link
Owner Author

EgorBot commented Oct 27, 2024

Benchmark results on Arm64

BenchmarkDotNet v0.14.0, Ubuntu 24.04 LTS (Noble Numbat)
Arm64
  Job-TLRIDZ : .NET 10.0.0 (42.42.42.42424), Arm64 RyuJIT AdvSIMD
  Job-AXELQD : .NET 10.0.0 (42.42.42.42424), Arm64 RyuJIT AdvSIMD
EnvironmentVariables=DOTNET_JitDisasm=TestInner  StdDev=0.0004 ns
Method Toolchain Mean Error Ratio
Test Main 1.001 ns 0.0005 ns 1.00
Test PR 1.188 ns 0.0005 ns 1.19

BDN_Artifacts.zip

Profile for Bench_Test:

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 27, 2024

cc @AndyAyersMS (logs)

@EgorBot
Copy link
Owner Author

EgorBot commented Oct 27, 2024

Benchmark results on Intel

BenchmarkDotNet v0.14.0, Ubuntu 24.04 LTS (Noble Numbat)
Intel Xeon Platinum 8488C, 1 CPU, 8 logical and 4 physical cores
  Job-JYJDFD : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
  Job-SIQINM : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
EnvironmentVariables=DOTNET_JitDisasm=TestInner
Method Toolchain Mean Error Ratio
Test Main 3.634 ns 0.0087 ns 1.00
Test PR 3.637 ns 0.0090 ns 1.00

BDN_Artifacts.zip

Profile for Bench_Test:

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 27, 2024

cc @AndyAyersMS (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