I think that we should add a new template for dotnet cli that would create following app when used:
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace BenchmarkApp
{
class Program
{
static void Main(string[] args) => BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
}
public class TypeWithBenchmarks
{
[Benchmark]
public int YourBenchmark()
{
// implement your benchmark here
return 0;
}
}
}
@AndreyAkinshin what do you think?
I think that we should add a new template for dotnet cli that would create following app when used:
@AndreyAkinshin what do you think?