Open EgorBot opened 2 months ago
c7a_4xlarge
BenchmarkDotNet v0.14.0, Ubuntu 24.04 LTS (Noble Numbat)
AMD EPYC 9R14, 1 CPU, 16 logical and 16 physical cores
Job-UEJUYI : .NET 9.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
Job-KVCNUJ : .NET 9.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
EnvironmentVariables=DOTNET_JitDisasm=TrailingZeroCount_ulong
Method | Toolchain | Mean | Error | Ratio |
---|---|---|---|---|
TrailingZeroCount_ulong | Before | 281.9 ns | 0.14 ns | 1.00 |
TrailingZeroCount_ulong | After | 280.1 ns | 0.34 ns | 0.99 |
Flame graphs: Main vs PR 🔥 Hot asm: Main vs PR Hot functions: Main vs PR Counters: Main vs PR
For clean perf
results, make sure you have just one [Benchmark]
in your app.
Processing https://github.com/EgorBot/runtime-utils/issues/78#issuecomment-2332091805 command:
Command
-awsamd -commit 72f9ee0d26c23b3c58ec5af8aeea316095761646 vs 767e4165641583c73918168a920a10513000572c -profiler --envvars DOTNET_JitDisasm:TrailingZeroCount_ulong ```cs using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Running; using System.Numerics; using System.Runtime.CompilerServices; public class Perf_BitOperations { static T[] Array(EgorBot will reply in this issue)