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 #109996 #165

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

EgorBot for EgorBo in #109996 #165

EgorBot opened this issue Nov 20, 2024 · 2 comments

Comments

@EgorBot
Copy link
Owner

EgorBot commented Nov 20, 2024

Processing dotnet/runtime#109996 (comment) command:

Command

-x64 -arm64

using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;

public class Bench
{
    struct S;

    [Benchmark]
    public Type Nested() => typeof(S).DeclaringType;

    [Benchmark]
    public Type NotNested() => typeof(Bench).DeclaringType;

    [Benchmark]
    public Type RefElementType() => typeof(Bench[]).GetElementType();

    [Benchmark]
    public Type ValueElementType() => typeof(S[]).GetElementType();
}

(EgorBot will reply in this issue)

@EgorBot
Copy link
Owner Author

EgorBot commented Nov 20, 2024

Benchmark results on linux_cobalt100

BenchmarkDotNet v0.14.0, Ubuntu 22.04.5 LTS (Jammy Jellyfish)
cobalt100
  Job-JXZYJN : .NET 10.0.0 (42.42.42.42424), Arm64 RyuJIT AdvSIMD
  Job-ZFPBJY : .NET 10.0.0 (42.42.42.42424), Arm64 RyuJIT AdvSIMD
Method Toolchain Mean Error Ratio
Nested Main 1.418 ns 0.0017 ns 1.00
Nested PR 1.416 ns 0.0013 ns 1.00
NotNested Main 1.058 ns 0.0011 ns 1.00
NotNested PR 1.053 ns 0.0011 ns 1.00
RefElementType Main 6.096 ns 0.0020 ns 1.00
RefElementType PR 7.093 ns 0.0007 ns 1.16
ValueElementType Main 6.096 ns 0.0024 ns 1.00
ValueElementType PR 7.095 ns 0.0010 ns 1.16

BDN_Artifacts.zip

cc @EgorBo (agent_logs.txt)

@EgorBot
Copy link
Owner Author

EgorBot commented Nov 20, 2024

Benchmark results on linux_icelake

BenchmarkDotNet v0.14.0, Ubuntu 22.04.5 LTS (Jammy Jellyfish)
Intel Xeon Platinum 8370C CPU 2.80GHz, 1 CPU, 8 logical and 4 physical cores
  Job-SWQWLH : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
  Job-UHHQPD : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
Method Toolchain Mean Error Ratio
Nested Main 1.4873 ns 0.0005 ns 1.00
Nested PR 1.7748 ns 0.0004 ns 1.19
NotNested Main 1.1651 ns 0.0005 ns 1.00
NotNested PR 0.8785 ns 0.0009 ns 0.75
RefElementType Main 2.8771 ns 0.0021 ns 1.00
RefElementType PR 4.6066 ns 0.0010 ns 1.60
ValueElementType Main 3.1763 ns 0.0027 ns 1.00
ValueElementType PR 4.6064 ns 0.0007 ns 1.45

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