-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Milestone
Description
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?
mattwarren, Rizzen, CodeTherapist, johnduhart, danmoseley and 4 more
Metadata
Metadata
Assignees
Labels
No labels