EgorBot / runtime-utils

MIT License
0 stars 1 forks source link

EgorBot for AndyAyersMS in #109237 #136

Open EgorBot opened 3 weeks ago

EgorBot commented 3 weeks ago

Processing https://github.com/dotnet/runtime/pull/109237#issuecomment-2438498193 command:

Command ```cs using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Running; using System.Runtime.CompilerServices; BenchmarkSwitcher.FromAssembly(typeof(Bench).Assembly).Run(args); public class Bench { static int[] s_array = new int[512]; [Benchmark] public int Test() { IEnumerable e = s_array; int sum = 0; foreach (int i in e) sum += i; return sum; } } ```

(EgorBot will reply in this issue)

EgorBot commented 3 weeks ago

Benchmark results on Amd

BenchmarkDotNet v0.14.0, Ubuntu 24.04 LTS (Noble Numbat)
AMD EPYC 9R14, 1 CPU, 8 logical and 8 physical cores
  Job-PFTHSE : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
  Job-ZREUDE : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
Method Toolchain Mean Error Ratio
Test Main 470.0 ns 1.83 ns 1.00
Test PR 157.7 ns 0.01 ns 0.34

BDN_Artifacts.zip

EgorBot commented 3 weeks ago

cc @AndyAyersMS (logs)