Azure / Azure/azure-sdk-tools

[Perf] Add runtime language version to results

Open
#3,597 0 comments 0 reactions 1 assignee Claimed by @mikeharder View on GitHub
pillar-performance
Dominant language
C#
Stars
135
Forks
260
Avg merge
1d 22h
Merged PRs (30d)
115

Description

Add the runtime language version to perf results

### .NET
1. Extract the target framework version from `runtimeconfig.json`:

```
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
},
```

2. Call `dotnet --list-runtimes` to determine all installed runtimes:

```
> dotnet --list-runtimes

Microsoft.AspNetCore.App 3.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.26 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
```

3. Implement own logic to roll-forward to latest matching installed version.
4. Alternatively, it might be possible for .NET perf framework to determine version at runtime, and include with the package version output.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.