Add multiple environment variable sets to aspnet2 SPMI collection#123242
Merged
Add multiple environment variable sets to aspnet2 SPMI collection#123242
Conversation
Modified superpmi_aspnet2.py to run each scenario 6 times with different environment variable sets: 1. Dummy=0 2. TieredCompilation=0 3. TieredPGO=0 4. TieredPGO=1, ReadyToRun=0 5. ReadyToRun=0, OSR_HitLimit=0, TC_OnStackReplacement_InitialCounter=10 6. TC_PartialCompilation=1 Each variable is passed as --application.environmentVariables DOTNET_<variable>=<value> to crank. Co-authored-by: EgorBo <523221+EgorBo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add multiple scenario runs to superpmi_aspnet2.py
Add multiple environment variable sets to aspnet2 SPMI collection
Jan 16, 2026
Member
|
/azp run runtime-coreclr superpmi-collect-test |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Member
|
PTAL @dotnet/jit-contrib @AndyAyersMS added a few variations for benchmarks with different env. knobs. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR modifies the superpmi_aspnet2.py script to run ASP.NET benchmarks multiple times with different JIT configuration environment variables for comprehensive SPMI (SuperPMI) data collection. The script previously ran each benchmark scenario once; now it runs each scenario with multiple environment variable configurations.
Changes:
- Modified the
run_crank_scenariofunction to accept and process custom environment variables - Added environment variable sets to configure JIT behavior (TieredCompilation, TieredPGO, ReadyToRun, etc.)
- Updated the main loop to run each of 4 scenarios with multiple environment configurations
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
AndyAyersMS
approved these changes
Jan 16, 2026
rosebyte
pushed a commit
that referenced
this pull request
Jan 19, 2026
…23242) ## Description The `superpmi_aspnet2.py` script ran each benchmark scenario only once. Modified to run each scenario 6 times with different JIT configuration environment variables to collect comprehensive SPMI data across compilation modes. ## Changes - **Modified `run_crank_scenario` signature**: Added `env_vars: dict` parameter to accept environment variable configurations - **Added environment variable processing**: Converts dictionary to `--application.environmentVariables DOTNET_<variable>=<value>` crank arguments - **Defined 6 environment variable sets**: 1. `Dummy=0` 2. `TieredCompilation=0` 3. `TieredPGO=0` 4. `TieredPGO=1, ReadyToRun=0` 5. `ReadyToRun=0, OSR_HitLimit=0, TC_OnStackReplacement_InitialCounter=10` 6. `TC_PartialCompilation=1` - **Updated main loop**: Nested iteration runs each of 4 scenarios with all 6 environment sets (24 total runs) ## Impact Before: 4 scenarios × 1 run = 4 total runs After: 4 scenarios × 6 env sets = 24 total runs Each run now displays the active configuration: ``` ### Running about-sqlite benchmark (set 1/6: Dummy=0)... ### ### Running about-sqlite benchmark (set 2/6: TieredCompilation=0)... ### ... ``` > [!WARNING] > > <details> > <summary>Firewall rules blocked me from connecting to one or more addresses (expand for details)</summary> > > #### I tried to connect to the following addresses, but was blocked by firewall rules: > > - `aka.ms` > - Triggering command: `/usr/bin/curl curl -I -sSL --retry 5 --retry-delay 2 --connect-timeout 15 REDACTED` (dns block) > > If you need me to access, download, or install something from one of these locations, you can either: > > - Configure [Actions setup steps](https://gh.io/copilot/actions-setup-steps) to set up my environment, which run before the firewall is enabled > - Add the appropriate URLs or hosts to the custom allowlist in this repository's [Copilot coding agent settings](https://github.com/dotnet/runtime/settings/copilot/coding_agent) (admins only) > > </details> <!-- START COPILOT CODING AGENT SUFFIX --> <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > # Add more scenarios to aspnet2 SPMI collection > > superpmi_aspnet2.py script currently runs all scenarios just once (e.g. "about-sqlite", "json", etc). I want you to runeach scenario multiple times with different sets of environment variables here are the sets: > > ``` > Dummy=0 > TieredCompilation=0 > TieredPGO=0 > TieredPGO=1, ReadyToRun=0 > ReadyToRun=0, OSR_HitLimit=0, TC_OnStackReplacement_InitialCounter=10 > TC_PartialCompilation=1 > ``` > 6 sets in total (some of them have multiple variables). > > each variable is basically extra `--application.environmentVariables DOTNET_<variable>=<value>` argument passed to crank. > > You don't have to build the whole runtime or run the script (it requires a complex setup). Just modify the script to add the above functionality. Make sure the code is correct and compiles without errors. </details> <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: EgorBo <523221+EgorBo@users.noreply.github.com> Co-authored-by: Egor Bogatov <egorbo@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
superpmi_aspnet2.pyscript ran each benchmark scenario only once. Modified to run each scenario 6 times with different JIT configuration environment variables to collect comprehensive SPMI data across compilation modes.Changes
run_crank_scenariosignature: Addedenv_vars: dictparameter to accept environment variable configurations--application.environmentVariables DOTNET_<variable>=<value>crank argumentsDummy=0TieredCompilation=0TieredPGO=0TieredPGO=1, ReadyToRun=0ReadyToRun=0, OSR_HitLimit=0, TC_OnStackReplacement_InitialCounter=10TC_PartialCompilation=1Impact
Before: 4 scenarios × 1 run = 4 total runs
After: 4 scenarios × 6 env sets = 24 total runs
Each run now displays the active configuration:
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
aka.ms/usr/bin/curl curl -I -sSL --retry 5 --retry-delay 2 --connect-timeout 15 REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.