Open
Description
Processing dotnet/runtime#110258 (comment) command:
Command
-intel -arm -profiler --envvars DOTNET_TC_CallCounting:0 DOTNET_TieredPGO_InstrumentOnlyHotCode:0
using BenchmarkDotNet.Attributes;
public class Bench
{
int a = 0;
int b = 0;
int c = 0;
int d = 0;
int e = 0;
[Benchmark]
public int Test()
{
int zeros = 0;
Parallel.For(0, 1024, i =>
{
int zeros = 0;
int nonzeros = 0;
if (a == 0)
zeros++;
else nonzeros++;
if (b == 0)
zeros++;
else nonzeros++;
if (c == 0)
zeros++;
else nonzeros++;
if (d == 0)
zeros++;
else nonzeros++;
if (e == 0)
zeros++;
else nonzeros++;
});
return zeros;
}
}
(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels