diff options
author | Viktor Hofer <viktor.hofer@microsoft.com> | 2017-12-02 03:08:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-02 03:08:58 +0300 |
commit | 97b535fc073e6b7337c4128b1c85629e7cbaeb47 (patch) | |
tree | 070697f7929da496e418dc5a51050d14705abb63 /Documentation | |
parent | 1f30ed083ecb9a09bc8c3bbc28f19c13c020a36c (diff) |
Finalizing layout of benchmarking.md file
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/project-docs/benchmarking.md | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Documentation/project-docs/benchmarking.md b/Documentation/project-docs/benchmarking.md index 0fd09b5767..1fdd450c64 100644 --- a/Documentation/project-docs/benchmarking.md +++ b/Documentation/project-docs/benchmarking.md @@ -66,12 +66,10 @@ public class Program } ``` -## Alternative 3 - Benchmarking with multiple or custom .NET Core 2.1 SDKs -Whenever you want to benchmark an application with one or multiple different .NET Core 2.1 run time framework versions simultaneously, you want to create a manual BenchmarkDotNet configuration file. - +# Benchmark multiple or custom .NET Core 2.x SDKs Follow the instructions described here https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/dogfooding.md#advanced-scenario---using-a-nightly-build-of-microsoftnetcoreapp and skip the last part which calls the `dotnet.exe` to run the application. -Add the desired amount of Jobs and add `NetCoreAppSettings` to specify the `targetFrameworkMoniker`, `runtimeFrameworkVersion` and `customDotNetCliPath` for each: +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`: ```csharp public class MainConfig : ManualConfig @@ -89,6 +87,9 @@ public class MainConfig : ManualConfig // Job #2 which could be in-process (see Alternative #2) // ... + + // Job #3 which could be .NET Core 2.0 + // ... // Add whatever jobs you need Add(DefaultColumnProviders.Instance); @@ -116,9 +117,9 @@ public class Program } ``` -## Running the benchmark +# Running the benchmark -To get valid results make sure to run your project with RELEASE configuration: +To get valid results make sure to run your project in RELEASE configuration: ``` cd "path/to/your/benchmark/project" |