Skip to content

Commit cdda509

Browse files
committed
One more missed net9.0 -> net10.0 replacement.
1 parent b580847 commit cdda509

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/benchmarks/micro/MicroBenchmarks.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<!-- Used by Python script to narrow down the specified target frameworks to test, and avoid downloading all supported SDKs -->
55
<TargetFrameworks>$(PERFLAB_TARGET_FRAMEWORKS)</TargetFrameworks>
66
<!-- Supported target frameworks -->
7-
<TargetFrameworks Condition="'$(TargetFrameworks)' == '' AND '$(OS)' == 'Windows_NT'">net462;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
8-
<TargetFrameworks Condition="'$(TargetFrameworks)' == '' AND '$(OS)' != 'Windows_NT'">net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
7+
<TargetFrameworks Condition="'$(TargetFrameworks)' == '' AND '$(OS)' == 'Windows_NT'">net462;net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
8+
<TargetFrameworks Condition="'$(TargetFrameworks)' == '' AND '$(OS)' != 'Windows_NT'">net6.0;net7.0;net8.0;net9.0;net10.0</TargetFrameworks>
99
<NoWarn>$(NoWarn);CS8002</NoWarn>
1010
<!-- Suppress binaryformatter obsolete warning -->
1111
<NoWarn>$(NoWarn);SYSLIB0011</NoWarn>

src/benchmarks/micro/README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -12,58 +12,58 @@ To learn more about designing benchmarks, please read [Microbenchmark Design Gui
1212

1313
## Quick Start
1414

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.
1616

1717
The following commands are run from the `src/benchmarks/micro` directory.
1818

1919
To run the benchmarks in Interactive Mode, where you will be asked which benchmark(s) to run:
2020

2121
```cmd
22-
dotnet run -c Release -f net9.0
22+
dotnet run -c Release -f net10.0
2323
```
2424

2525
To list all available benchmarks ([read more](../../../docs/benchmarkdotnet.md#Listing-the-Benchmarks)):
2626

2727
```cmd
28-
dotnet run -c Release -f net9.0 --list flat|tree
28+
dotnet run -c Release -f net10.0 --list flat|tree
2929
```
3030

3131
To filter the benchmarks using a glob pattern applied to namespace.typeName.methodName ([read more](../../../docs/benchmarkdotnet.md#Filtering-the-Benchmarks)):
3232

3333
```cmd
34-
dotnet run -c Release -f net9.0 --filter *Span*
34+
dotnet run -c Release -f net10.0 --filter *Span*
3535
```
3636

3737
To profile the benchmarked code and produce an ETW Trace file ([read more](../../../docs/benchmarkdotnet.md#Profiling)):
3838

3939
```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
4141
```
4242

4343
To run the benchmarks for multiple runtimes ([read more](../../../docs/benchmarkdotnet.md#Multiple-Runtimes)):
4444

4545
```cmd
46-
dotnet run -c Release -f net8.0 --filter * --runtimes net8.0 net9.0
46+
dotnet run -c Release -f net8.0 --filter * --runtimes net8.0 net10.0
4747
```
4848

4949
## Private Runtime Builds
5050

5151
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:
5252

5353
```cmd
54-
dotnet run -c Release -f net9.0 --filter $YourFilter \
55-
--corerun C:\git\runtime\artifacts\bin\testhost\net9.0-windows-Release-x64\shared\Microsoft.NETCore.App\9.0.0\CoreRun.exe
54+
dotnet run -c Release -f net10.0 --filter $YourFilter \
55+
--corerun C:\git\runtime\artifacts\bin\testhost\net10.0-windows-Release-x64\shared\Microsoft.NETCore.App\9.0.0\CoreRun.exe
5656
```
5757

5858
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)):
5959

6060
```cmd
61-
dotnet run -c Release -f net9.0 \
61+
dotnet run -c Release -f net10.0 \
6262
--filter BenchmarksGame* \
6363
--statisticalTest 3ms \
6464
--coreRun \
65-
"C:\git\runtime_upstream\artifacts\bin\testhost\net9.0-windows-Release-x64\shared\Microsoft.NETCore.App\9.0.0\CoreRun.exe" \
66-
"C:\git\runtime_fork\artifacts\bin\testhost\net9.0-windows-Release-x64\shared\Microsoft.NETCore.App\9.0.0\CoreRun.exe"
65+
"C:\git\runtime_upstream\artifacts\bin\testhost\net10.0-windows-Release-x64\shared\Microsoft.NETCore.App\9.0.0\CoreRun.exe" \
66+
"C:\git\runtime_fork\artifacts\bin\testhost\net10.0-windows-Release-x64\shared\Microsoft.NETCore.App\9.0.0\CoreRun.exe"
6767
```
6868

6969
If you **prefer to use dotnet cli** instead of CoreRun, you need to pass the path to cli via the `--cli` argument.

0 commit comments

Comments
 (0)