-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
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
Labels
No labels