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 #115284 (jkotas) #353

Open

Description

@EgorBot

Processing dotnet/runtime#115284 (comment) command:

Command

-windows_intel -intel

using System.Reflection;
using BenchmarkDotNet.Attributes;

public class Bench
{
    static int x;

    [Benchmark]
    public void Finally()
    {
        try
        {
            try
            {
                try
                {
                    try
                    {
                        try
                        {
                            try
                            {
                                try
                                {
                                    try
                                    {
                                        try
                                        {
                                            try
                                            {
                                                throw new Exception();
                                            }
                                            finally { x++; }
                                        }
                                        finally { x++; }
                                    }
                                    finally { x++; }
                                }
                                finally { x++; }
                            }
                            finally { x++; }
                        }
                        finally { x++; }
                    }
                    finally { x++; }
                }
                finally { x++; }
            }
            finally { x++; }
        }
        catch
        {
        }
    }
}

(EgorBot will reply in this issue)

Activity

  1. EgorBot commented on May 4, 2025

    @EgorBot
    OwnerAuthor

    Benchmark results on linux_azure_cascadelake

    BenchmarkDotNet v0.14.0, Ubuntu 24.04.2 LTS (Noble Numbat)
    Intel Xeon Platinum 8370C CPU 2.80GHz, 1 CPU, 4 logical and 2 physical cores
      Job-ICGNOI : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
      Job-NWCCYK : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
    
    Method Toolchain Mean Error Ratio
    Finally Main 2.112 μs 0.0072 μs 1.00
    Finally PR 2.097 μs 0.0031 μs 0.99

    BDN_Artifacts.zip

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

  2. EgorBot commented on May 4, 2025

    @EgorBot
    OwnerAuthor

    Benchmark results on windows_azure_cascadelake

    BenchmarkDotNet v0.14.0, Windows 11 (10.0.26100.2314) (Hyper-V)
    azure_cascadelake
      Job-WUVFEF : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
      Job-YDMMHN : .NET 10.0.0 (42.42.42.42424), X64 RyuJIT AVX-512F+CD+BW+DQ+VL+VBMI
    
    Method Job Toolchain Mean Error Ratio
    Finally Job-WUVFEF \core_root_base\corerun.exe 2.137 μs 0.0419 μs 1.00
    Finally Job-YDMMHN \core_root_diff\corerun.exe 2.203 μs 0.0437 μs 1.03

    BDN_Artifacts.zip

    cc @jkotas (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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions