Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Benchmarks for #116109 (jkotas) #506

Open

Description

@EgorBot

Processing dotnet/runtime#116109 (comment) command:

Command

-intel

using BenchmarkDotNet.Attributes;

public class Bench
{
    int[] a = new int[10000];
    int[] b = new int[10000];
    MyComparer c = new MyComparer();

    [IterationSetup]
    public void IterationSetup() { for (int i = 0; i < a.Length; i++) a[i] = i; }

    [Benchmark]
    public void Sort() => Array.Sort(a, b, c);

    class MyComparer : IComparer<int>
    {
        public int Compare(int x, int y) => x-y;
    }   
}

(EgorBot will reply in this issue)

Activity

  1. EgorBot commented on Oct 1, 2025

    @EgorBot
    OwnerAuthor

    Benchmark results on linux_azure_cascadelake

    BenchmarkDotNet v0.15.0, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
    Intel Xeon Platinum 8370C CPU 2.80GHz, 1 CPU, 8 logical and 4 physical cores
      Job-DRZTVA : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
      Job-QONAJM : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
    InvocationCount=1  UnrollFactor=1  RatioSD=0.03
    
    Method Toolchain Mean Error Ratio
    Sort Main 300.9 μs 5.74 μs 1.00
    Sort PR 301.0 μs 5.79 μs 1.00

    BDN_Artifacts.zip

    cc @jkotas (agent_logs.txt). EgorBot manual: link.

  2. xtqqczze commented on Nov 19, 2025

    @xtqqczze

    @jkotas It appears this benchmark wasn't applicable to the changes from dotnet/runtime#116109 as the implementation of Array.Sort methods did not change.

    See also: dotnet/runtime#121797

  3. jkotas commented on Nov 20, 2025

    @jkotas

    Good catch! I made a mistake in the benchmark - rerunning it at dotnet/runtime#116109 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions