Open
Description
Processing dotnet/runtime#111911 (comment) command:
Command
-amd -mono -commit main --envvars MONO_VERBOSE_METHOD:TestMethod
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using BenchmarkDotNet.Attributes;
public class Benchmarks
{
private static ReadOnlySpan<byte> TwoDigitsCharsAsBytes =>
MemoryMarshal.AsBytes<char>("00010203040506070809" +
"10111213141516171819" +
"20212223242526272829" +
"30313233343536373839" +
"40414243444546474849" +
"50515253545556575859" +
"60616263646566676869" +
"70717273747576777879" +
"80818283848586878889" +
"90919293949596979899");
[MethodImpl(MethodImplOptions.NoInlining)]
static byte TestMethod(int i)
{
return TwoDigitsCharsAsBytes[i];
}
[Benchmark]
public byte Bench()
{
return TestMethod(1);
}
}
(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels