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 #113998 (EgorBo) #335

Description

@EgorBot

Processing dotnet/runtime#113998 (comment) command:

Command

-amd

using BenchmarkDotNet.Attributes;

public class Bench
{
    static string[] _strings = ["1", "10", "100", "1000", "10000", "100000", "1000000"];

    [Benchmark]
    public int Sum()
    {
        int sum = 0;
        foreach (string str in _strings)
        {
            sum += str switch
            {
                "1" => 1,
                "10" => 10,
                "100" => 100,
                "1000" => 1000,
                "10000" => 10000,
                "100000" => 100000,
                "1000000" => 1000000,
                _ => -1
            };
        }
        return sum;
    }
}

(EgorBot will reply in this issue)

Activity

  1. EgorBot commented on Mar 29, 2025

    @EgorBot
    OwnerAuthor

    Benchmark results on linux_azure_genoa

    BenchmarkDotNet v0.14.0, Ubuntu 24.04.2 LTS (Noble Numbat)
    AMD EPYC 9V74, 1 CPU, 16 logical and 8 physical cores
      Job-PULLAH : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
      Job-EFMOTY : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
    
    Method Toolchain Mean Error Ratio
    Sum Main 12.00 ns 0.175 ns 1.00
    Sum PR 11.25 ns 0.253 ns 0.94

    BDN_Artifacts.zip

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

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions