replace obsoleted attribute CoreJobAttribute with SimpleJob (#585)
authorShiming Ge <v-shige@microsoft.com>
Tue, 29 Oct 2019 08:23:13 +0000 (16:23 +0800)
committerSung Yoon Whang <suwhang@microsoft.com>
Tue, 29 Oct 2019 08:23:13 +0000 (01:23 -0700)
src/tests/benchmarks/Program.cs

index 7265ecb985179f9b4ac2862c9dca15771c3b2a91..b66cab58e17f678c0757535db687eadff419b4c7 100644 (file)
@@ -3,10 +3,11 @@ using System.Reflection;
 using System.Threading;
 using BenchmarkDotNet.Attributes;
 using BenchmarkDotNet.Running;
+using BenchmarkDotNet.Jobs;
 
 namespace CounterBenchmarks
 {
-    [CoreJob]
+    [SimpleJob(RuntimeMoniker.HostProcess)]
     [RPlotExporter, RankColumn]
     public class CounterBenchmarks
     {