Skip to content

EgorBot for AaronRobinsonMSFT in #111034 #221

Open
@EgorBot

Description

@EgorBot

Processing dotnet/runtime#111034 (comment) command:

Command

-amd -arm

using System;
using System.Runtime.CompilerServices;
using BenchmarkDotNet.Attributes;

public class Bench
{
    [MethodImpl(MethodImplOptions.NoInlining)]
    static object Alloc<T>(int a, int b, int c)
    {
        return new T[a, b, c];
    }

    [Benchmark]
    public object MDInt() => Alloc<int>(1,2,3);

    [Benchmark]
    public object MDObject() => Alloc<object>(1,2,3);

    [Benchmark]
    public object MDGuid() => Alloc<Guid>(1,2,3);
}

(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