-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Processing dotnet/runtime#119041 (comment) command:
Command
-amd -intel -arm
using System;
using System.Runtime.CompilerServices;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
BenchmarkSwitcher.FromAssembly(typeof(Benchmarks).Assembly).Run(args);
public class Benchmarks
{
[Benchmark]
[Arguments(2)]
[Arguments(16)]
[Arguments(64)]
[Arguments(100)]
[Arguments(300)]
[Arguments(512)]
[Arguments(2048)]
[Arguments(16*1024)]
public void NonConstantStackalloc(int n) => Consume(stackalloc byte[n]);
[MethodImpl(MethodImplOptions.NoInlining)]
void Consume(Span<byte> span){}
}(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels