EgorBot / runtime-utils

MIT License
0 stars 1 forks source link

EgorBot for MichalPetryka in #99200 #133

Open EgorBot opened 4 hours ago

EgorBot commented 4 hours ago

Processing https://github.com/dotnet/runtime/pull/99200#issuecomment-2436042877 command:

Command -intel ```C# using System; using System.Diagnostics; using System.Reflection.Emit; using BenchmarkDotNet.Attributes; public class Bench { [Benchmark] public void DummyDynamicMethod() { DynamicMethod dm = new DynamicMethod("Dummy", typeof(void), null); ILGenerator il = dm.GetILGenerator(); il.Emit(OpCodes.Ret); Action a = dm.CreateDelegate(); a(); } } ```

(EgorBot will reply in this issue)

EgorBot commented 2 hours ago

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-ZQQLSI : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
  Job-QURJGU : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
RatioSD=0.02
Method Toolchain Mean Error Ratio
DummyDynamicMethod Main 6.988 μs 0.0840 μs 1.00
DummyDynamicMethod PR 6.908 μs 0.1177 μs 0.99

BDN_Artifacts.zip

EgorBot commented 2 hours ago

cc @MichalPetryka (logs)