-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Processing dotnet/runtime#109237 (comment) command:
Command
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System.Runtime.CompilerServices;
BenchmarkSwitcher.FromAssembly(typeof(Bench).Assembly).Run(args);
public class Bench
{
static int[] s_array = new int[512];
[Benchmark]
public int Test()
{
IEnumerable<int> e = s_array;
int sum = 0;
foreach (int i in e) sum += i;
return sum;
}
}(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels