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) #351

Description

@EgorBot

Processing dotnet/runtime#115284 (comment) command:

Command

-windows_intel -amd

using System.Reflection;
using BenchmarkDotNet.Attributes;

public class Bench
{
    static int x;

    [Benchmark]
    public int 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)

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