EgorBot / runtime-utils

MIT License
0 stars 1 forks source link

EgorBot for EgorBo in #8 #7

Open EgorBot opened 2 weeks ago

EgorBot commented 2 weeks ago

Processing https://github.com/EgorBo/UtilsRunner/issues/8#issuecomment-2323397857:


-commit main -perf

using System;
using BenchmarkDotNet.Attributes;

public class Bench
{
    static object[] A = new object[1000];
    static object[] B = new object[1000];

    [Benchmark]
    public void Test() => A.AsSpan().CopyTo(B);
}
EgorBot commented 2 weeks ago

Benchmark results on Intel

BenchmarkDotNet v0.14.0, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
Intel Xeon Platinum 8370C CPU 2.80GHz, 1 CPU, 16 logical and 8 physical cores
  Job-RKTHAI : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
Job=Job-RKTHAI  Toolchain=CoreRun  StdDev=0.33 ns
Method Mean Error
Test 232.7 ns 0.35 ns

BDN_Artifacts.zip

Flame graphs: Main Hot asm: Main Hot functions: Main

For clean perf results, make sure you have just one [Benchmark] in your app.

EgorBot commented 2 weeks ago

Build log

cc @EgorBo