-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Processing dotnet/runtime#112061 (comment) command:
Command
-intel
using System.Numerics;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
// Actual runner is optional, but if it exists, it has to be like this:
BenchmarkSwitcher.FromAssembly(typeof(Bench).Assembly).Run(args);
public class Bench
{
private int v = 42;
[Benchmark]
public double GetDouble() => CastNumber<double>(this.v);
static T CastNumber<T>(int v) where T : INumberBase<T>
{
return T.CreateTruncating(v);
}
}
(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels