EgorBot / runtime-utils

MIT License
0 stars 1 forks source link

EgorBot for jkotas in #99200 #131

Open EgorBot opened 4 hours ago

EgorBot commented 4 hours ago

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

Command -intel ```csharp 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 4 hours ago

Benchmark results on Intel

BenchmarkDotNet v0.14.0, Ubuntu 24.04 LTS (Noble Numbat)
Intel Xeon Platinum 8488C, 1 CPU, 16 logical and 8 physical cores
  Job-CUYAWI : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
  Job-TJASAX : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
Method Toolchain Mean Error Ratio
DummyDynamicMethod Main 7.582 μs 0.0831 μs 1.00
DummyDynamicMethod PR 8.090 μs 0.1609 μs 1.07

BDN_Artifacts.zip

EgorBot commented 4 hours ago

cc @jkotas (logs)