EgorBot / runtime-utils

MIT License
0 stars 1 forks source link

EgorBot for EgorBo in #109996 #165

Open EgorBot opened 2 days ago

EgorBot commented 2 days ago

Processing https://github.com/dotnet/runtime/pull/109996#issuecomment-2487400262 command:

Command -x64 -arm64 ```cs 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 commented 2 days ago

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 commented 2 days ago

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)