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
Copy file name to clipboardexpand all lines: src/benchmarks/micro/README.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -12,58 +12,58 @@ 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: `netcoreapp3.1|net6.0|net7.0|net8.0|net9.0|net462`. You can specify the target framework using `-f|--framework` argument. For the sake of simplicity, all examples below use `net9.0` as the target framework.
15
+
The first thing that you need to choose is the Target Framework. Available options are: `netcoreapp3.1|net6.0|net7.0|net8.0|net9.0|net10.0|net462`. You can specify the target framework using `-f|--framework` argument. For the sake of simplicity, all examples below use `net10.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 net9.0
22
+
dotnet run -c Release -f net10.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 net9.0 --list flat|tree
28
+
dotnet run -c Release -f net10.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 net9.0 --filter *Span*
34
+
dotnet run -c Release -f net10.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 net9.0 --filter $YourFilter --profiler ETW
40
+
dotnet run -c Release -f net10.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)):
If you contribute to [dotnet/runtime](https://github.com/dotnet/runtime) and want to benchmark **local builds of .NET Core** you need to build [dotnet/runtime](https://github.com/dotnet/runtime) in Release (including tests - so a command similar to `build clr+libs+libs.tests -rc release -lc release`) and then provide the path(s) to CoreRun(s). Provided CoreRun(s) will be used to execute every benchmark in a dedicated process:
52
52
53
53
```cmd
54
-
dotnet run -c Release -f net9.0 --filter $YourFilter \
To make sure that your changes don't introduce any regressions, you can provide paths to CoreRuns with and without your changes and use the Statistical Test feature to detect regressions/improvements ([read more](../../../docs/benchmarkdotnet.md#Regressions)):
0 commit comments