Open
Description
Processing dotnet/runtime#115134 (comment) command:
Command
-windows_intel -amd -arm
using System.Runtime.CompilerServices;
using BenchmarkDotNet.Attributes;
public class Bench
{
[Benchmark] public object Box8() => Box(new Buffer8());
[Benchmark] public object Box16() => Box(new Buffer16());
[Benchmark] public object Box32() => Box(new Buffer32());
[Benchmark] public object Box256() => Box(new Buffer256());
[MethodImpl(MethodImplOptions.NoInlining |
MethodImplOptions.NoOptimization)]
static object Box<T>(T value) => (object)value;
}
[InlineArray(1)] public struct Buffer8 {
long _element0;
}
[InlineArray(2)] public struct Buffer16 {
long _element0;
}
[InlineArray(4)] public struct Buffer32 {
long _element0;
}
[InlineArray(32)] public struct Buffer256 {
long _element0;
}
(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels