Skip to content

EgorBot for am11 in #110344 #200

@EgorBot

Description

@EgorBot

Processing dotnet/runtime#110344 (comment) command:

Command

-windows_intel

using System;
using BenchmarkDotNet.Attributes;

public class Bench
{
    [Bench]
    public static byte GetRef()
    {
        MyStruct myStruct = new MyStruct(42);
        TypedReference tr = __makeref(myStruct);
        byte fieldValue = __refvalue(tr, MyStruct).Field;
        return fieldValue;
    }
}

public struct MyStruct
{
    public byte Field;

    public MyStruct(byte value)
    {
        Field = value;
    }
}

(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