Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 14bf878

Browse files
authored
Update benchmark sample code
1 parent e8f9604 commit 14bf878

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Documentation/project-docs/benchmarking.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ Follow the instructions described here https://github.com/dotnet/corefx/blob/mas
7272
Whenever you want to benchmark an application simultaneously with one or multiple different .NET Core run time framework versions, you want to create a manual BenchmarkDotNet configuration file. Add the desired amount of Jobs and `NetCoreAppSettings` to specify the `targetFrameworkMoniker`, `runtimeFrameworkVersion` and `customDotNetCliPath`:
7373

7474
```csharp
75+
using BenchmarkDotNet.Columns;
76+
using BenchmarkDotNet.Configs;
77+
using BenchmarkDotNet.Diagnosers;
78+
using BenchmarkDotNet.Environments;
79+
using BenchmarkDotNet.Exporters;
80+
using BenchmarkDotNet.Jobs;
81+
using BenchmarkDotNet.Loggers;
82+
using BenchmarkDotNet.Toolchains.CsProj;
83+
using BenchmarkDotNet.Toolchains.DotNetCli;
84+
7585
public class MainConfig : ManualConfig
7686
{
7787
public MainConfig()
@@ -83,7 +93,7 @@ public class MainConfig : ManualConfig
8393
targetFrameworkMoniker: "netcoreapp2.1",
8494
runtimeFrameworkVersion: "2.1.0-preview1-25919-02", // <-- Adjust version here
8595
customDotNetCliPath: @"C:\dotnet-nightly\dotnet.exe", // <-- Adjust path here
86-
name: "Core 2.1.0-preview")));
96+
name: "Core 2.1.0-preview"))));
8797

8898
// Job #2 which could be in-process (see Alternative #2)
8999
// ...

0 commit comments

Comments
 (0)