You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* remove 2.2 CI legs
* restore 3.0 and 2.1 CI legs
* supported TFMs: remove 2.2, add 3.1 and update the docs
* remove compilation conditions for NETCOREAPP2_2 from the source code
* update python scripts
Copy file name to clipboardExpand all lines: docs/benchmarkdotnet.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ In order to build or run the benchmarks you will need the **.NET Core command-li
59
59
60
60
### Using .NET Cli
61
61
62
-
To build the benchmarks you need to have the right `dotnet cli`. This repository allows to benchmark .NET Core 2.0, 2.1, 2.2, 3.0 and 5.0 so you need to install all of them.
62
+
To build the benchmarks you need to have the right `dotnet cli`. This repository allows to benchmark .NET Core 2.1, 3.0, 3.1 and 5.0 so you need to install all of them.
63
63
64
64
All you need to do is run the following command:
65
65
@@ -70,8 +70,8 @@ dotnet build -c Release
70
70
If you don't want to install all of them and just run the benchmarks for selected runtime(s), you need to manually edit the [common.props](../build/common.props) file.
Available options are: Mono, CoreRT, net461, net462, net47, net471, net472, netcoreapp2.1, netcoreapp3.0, netcoreapp3.1 and netcoreapp5.0.
287
287
288
-
Example: run the benchmarks for .NET Core 2.2 and 3.0:
288
+
Example: run the benchmarks for .NET Core 3.1 and 5.0:
289
289
290
290
```cmd
291
-
dotnet run -c Release -f netcoreapp2.2 --runtimes netcoreapp2.1 netcoreapp3.0
291
+
dotnet run -c Release -f netcoreapp3.1 --runtimes netcoreapp3.1 netcoreapp5.0
292
292
```
293
293
294
-
**Important: The host process needs to be the lowest common API denominator of the runtimes you want to compare!** In this case, it was`netcoreapp2.2`.
294
+
**Important: The host process needs to be the lowest common API denominator of the runtimes you want to compare!** In this case, it was`netcoreapp3.1`.
295
295
296
296
## Regressions
297
297
298
298
To perform a Mann–Whitney U Test and display the results in a dedicated column you need to provide the Threshold for Statistical Test via `--statisticalTest` argument. The value can be relative (5%) or absolute (10ms, 100ns, 1s)
299
299
300
-
Example: run Mann–Whitney U test with relative ratio of 5% for `BinaryTrees_2` for .NET Core 2.1 (base) vs .NET Core 2.2 (diff). .NET Core 2.1 will be baseline because it was first.
300
+
Example: run Mann–Whitney U test with relative ratio of 5% for `BinaryTrees_2` for .NET Core 3.1 (base) vs .NET Core 5.0 (diff). .NET Core 3.1 will be baseline because it was first.
Copy file name to clipboardExpand all lines: docs/benchmarking-workflow-dotnet-runtime.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,7 @@ If profiling using the `--profiler ETW` is not enough, you should use a differen
212
212
213
213
BenchmarkDotNet has some extra features that might be useful when doing performance investigation:
214
214
215
-
- You can run the benchmarks against [multiple Runtimes](./benchmarkdotnet.md#Multiple-Runtimes). It can be very useful when the regression has been introduced between .NET Core releases, for example: between netcoreapp2.2 and netcoreapp3.0.
215
+
- You can run the benchmarks against [multiple Runtimes](./benchmarkdotnet.md#Multiple-Runtimes). It can be very useful when the regression has been introduced between .NET Core releases, for example: between netcoreapp3.1 and netcoreapp5.0.
216
216
- You can run the benchmarks using provided [dotnet cli](./benchmarkdotnet.md#dotnet-cli). You can download few dotnet SDKs, unzip them and just run the benchmarks to spot the version that has introduced the regression to narrow down your investigation.
217
217
- You can run the benchmarks using few [CoreRuns](./benchmarkdotnet.md#CoreRun). You can build the latest [dotnet/runtime](https://github.com/dotnet/runtime) in Release, create a copy of the folder with CoreRun and use git to checkout an older commit. Then rebuild [dotnet/runtime](https://github.com/dotnet/runtime) and run the benchmarks against the old and new builds. This can narrow down your investigation to the commit that has introduced the bug.
Copy file name to clipboardExpand all lines: src/benchmarks/micro/README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -12,38 +12,38 @@ To learn more about designing benchmarks, please read [Microbenchmark Design Gui
12
12
13
13
## Quick Start
14
14
15
-
The first thing that you need to choose is the Target Framework. Available options are: `netcoreapp2.1|netcoreapp2.2|netcoreapp3.0|net461`. You can specify the target framework using `-f|--framework` argument. For the sake of simplicity, all examples below use `netcoreapp3.0` as the target framework.
15
+
The first thing that you need to choose is the Target Framework. Available options are: `netcoreapp2.1|netcoreapp3.0|netcoreapp3.1|netcoreapp5.0|net461`. You can specify the target framework using `-f|--framework` argument. For the sake of simplicity, all examples below use `netcoreapp5.0` as the target framework.
16
16
17
17
The following commands are run from the `src/benchmarks/micro` directory.
18
18
19
19
To run the benchmarks in Interactive Mode, where you will be asked which benchmark(s) to run:
20
20
21
21
```cmd
22
-
dotnet run -c Release -f netcoreapp3.0
22
+
dotnet run -c Release -f netcoreapp5.0
23
23
```
24
24
25
25
To list all available benchmarks ([read more](../../../docs/benchmarkdotnet.md#Listing-the-Benchmarks)):
26
26
27
27
```cmd
28
-
dotnet run -c Release -f netcoreapp3.0 --list flat|tree
28
+
dotnet run -c Release -f netcoreapp5.0 --list flat|tree
29
29
```
30
30
31
31
To filter the benchmarks using a glob pattern applied to namespace.typeName.methodName ([read more](../../../docs/benchmarkdotnet.md#Filtering-the-Benchmarks)):
32
32
33
33
```cmd
34
-
dotnet run -c Release -f netcoreapp3.0 --filter *Span*
34
+
dotnet run -c Release -f netcoreapp5.0 --filter *Span*
35
35
```
36
36
37
37
To profile the benchmarked code and produce an ETW Trace file ([read more](../../../docs/benchmarkdotnet.md#Profiling)):
38
38
39
39
```cmd
40
-
dotnet run -c Release -f netcoreapp3.0 --filter $YourFilter --profiler ETW
40
+
dotnet run -c Release -f netcoreapp5.0 --filter $YourFilter --profiler ETW
41
41
```
42
42
43
43
To run the benchmarks for multiple runtimes ([read more](../../../docs/benchmarkdotnet.md#Multiple-Runtimes)):
0 commit comments