From 87b4d0ae2794cbf3cfa4b982fde12b2bfe7e25e3 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 8 Jul 2021 17:40:53 +0200 Subject: [PATCH] Minor code style tweaks --- samples/ComputeSharp.Benchmark/Program.cs | 27 +++++++++-------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/samples/ComputeSharp.Benchmark/Program.cs b/samples/ComputeSharp.Benchmark/Program.cs index 0c321dcc..95f91fb9 100644 --- a/samples/ComputeSharp.Benchmark/Program.cs +++ b/samples/ComputeSharp.Benchmark/Program.cs @@ -1,18 +1,11 @@ -using BenchmarkDotNet.Running; +using System.Reflection; +using BenchmarkDotNet.Running; -namespace ComputeSharp.Benchmark -{ - public class Program - { - public static void Main(string[] args) - { - // ================= - // BenchmarkDotNet - // ================ - // In order to run this benchmark, compile this project in Release mode, - // then go to its bin\Release\netcoreapp3.0 folder, open a cmd prompt - // and type "dotnet ComputeSharp.Benchmark.dll" to execute it. - BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args); - } - } -} +// ================= +// BenchmarkDotNet +// ================ +// In order to run this benchmark, switch to Release mode and either run select +// it as the startup project for the solution and run it without the debugger +// (CTRL + F5), or compile it and then go to its bin\Release\net5.0 folder, +// open a cmd prompt and run "dotnet ComputeSharp.Benchmark.dll". +BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly()).Run(args);