Testing: compare Windows benchmark runs with memory and time limits #2188

Open
github-bot wants to merge 2 commits from github-bot/gh-2188 into main AGit
Owner

@⁠Razdva122 on GitHub · 2026-11-25 07:20 UTC · original
Razdva122:codex/benchmark-run-reports → main · +595 −0 · 7 files · 2 commits · open

Implements the comparable Windows benchmark report proposed by @⁠bittertea0323 in #819. This is an independent implementation of the published specification. Coordination thread

$first = cargo xtask bench --title 'D:\titles\test.exe' --console series-s --label baseline
cargo xtask bench --title 'D:\titles\test.exe' --console series-s --exe 'D:\candidate\victory.exe' --baseline $first

One Markdown file records translation and texture failure counts, frame-rate and draw peaks, sampled peak working set, crash RVA when available, the stop reason and a three-second timeline. The reports default to the user's local data directory and can be compared by passing a previous report. The defaults from #819 are 180 seconds, an 8 GiB process working-set ceiling and a 3 GiB floor for available system memory. These are sampled limits. The report distinguishes a missing measurement from an observed zero.

The runner is a Rust subcommand alongside cargo xtask policy. The existing workspace test command runs the self-tests with synthetic inputs. On Windows the test binary launches a child that emits diagnostic lines and a known exit code. It checks stderr drainage, crash RVA, time and working-set cutoffs, and the low-free-memory check before launch. Separate parser assertions cover report aggregation and comparison to a previous Markdown report. These checks need no title assets. Representative performance figures require two local title runs.

At f20593f, both Windows Clippy configurations and the full workspace tests passed. The xtask test binary took 1.02 s in the normal workspace run. A separate fork-only timing run of the three benchmark tests took 1.01 s for execution and 23.04 s end to end, including 21.92 s of Cargo compilation for the standalone package. The PR adds no CI workflow step. Windows run and timing

AI-assisted with Codex.

Closes #819.

**@⁠Razdva122** on GitHub · 2026-11-25 07:20 UTC · [original](https://github.com/Marvisak/VIctory/pull/2188) `Razdva122:codex/benchmark-run-reports` → `main` · +595 −0 · 7 files · 2 commits · open Implements the comparable Windows benchmark report proposed by @⁠bittertea0323 in #819. This is an independent implementation of the published specification. [Coordination thread](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633) ```powershell $first = cargo xtask bench --title 'D:\titles\test.exe' --console series-s --label baseline cargo xtask bench --title 'D:\titles\test.exe' --console series-s --exe 'D:\candidate\victory.exe' --baseline $first ``` One Markdown file records translation and texture failure counts, frame-rate and draw peaks, sampled peak working set, crash RVA when available, the stop reason and a three-second timeline. The reports default to the user's local data directory and can be compared by passing a previous report. The defaults from #819 are 180 seconds, an 8 GiB process working-set ceiling and a 3 GiB floor for available system memory. These are sampled limits. The report distinguishes a missing measurement from an observed zero. The runner is a Rust subcommand alongside `cargo xtask policy`. The existing workspace test command runs the self-tests with synthetic inputs. On Windows the test binary launches a child that emits diagnostic lines and a known exit code. It checks stderr drainage, crash RVA, time and working-set cutoffs, and the low-free-memory check before launch. Separate parser assertions cover report aggregation and comparison to a previous Markdown report. These checks need no title assets. Representative performance figures require two local title runs. At `f20593f`, both Windows Clippy configurations and the full workspace tests passed. The xtask test binary took 1.02 s in the normal workspace run. A separate fork-only timing run of the three benchmark tests took 1.01 s for execution and 23.04 s end to end, including 21.92 s of Cargo compilation for the standalone package. The PR adds no CI workflow step. [Windows run and timing](https://github.com/Razdva122/VIctory/actions/runs/45819094818/job/139906371229) AI-assisted with Codex. Closes #819.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:57:53 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:39 UTC · original

Automated triage for the maintainers.

Needs work: needs the maintainer's decision. This adds a step to the CI workflow (.github/workflows/ci.yml runs tests/bench.ps1), plus a 275-line PowerShell script (scripts/victory-bench.ps1) that launches victory.exe and compares benchmark runs under memory and time limits, and a README section. Changes to CI workflows and scripts that run the program are for the maintainer to accept.

If the maintainer wants a benchmark harness:

  • CI has no title data, so it is unclear what the new CI step measures there beyond the script's own self-test. Please say what it runs on a runner without the title, and how long it adds.
  • A tool like this would sit better as an xtask command in Rust next to cargo xtask policy than as a PowerShell script, so it builds and is checked like the rest of the repo.

Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:39 UTC · [original](https://github.com/Marvisak/VIctory/pull/2188#issuecomment-7162670957) <!-- victory-triage v1 head=03e854856be341dc0ac195f3c80da2c5c46a764f verdict=needs-work at=2026-11-25T13:54:00Z --> Automated triage for the maintainers. **Needs work: needs the maintainer's decision.** This adds a step to the CI workflow (`.github/workflows/ci.yml` runs `tests/bench.ps1`), plus a 275-line PowerShell script (`scripts/victory-bench.ps1`) that launches `victory.exe` and compares benchmark runs under memory and time limits, and a README section. Changes to CI workflows and scripts that run the program are for the maintainer to accept. If the maintainer wants a benchmark harness: - CI has no title data, so it is unclear what the new CI step measures there beyond the script's own self-test. Please say what it runs on a runner without the title, and how long it adds. - A tool like this would sit better as an `xtask` command in Rust next to `cargo xtask policy` than as a PowerShell script, so it builds and is checked like the rest of the repo. --- _Generated by [Claude Code](https://claude.ai/code)_
github-bot force-pushed github-bot/gh-2188 from 03e854856b to f20593fb26 2026-11-26 12:25:18 +00:00 Compare
Author
Owner

@⁠catminou4 on GitHub · 2026-11-25 08:02 UTC · original · reviewed

Static review only: docs/tools change — no crate code.

Benchmark comparison docs (memory + time) — methodology documentation; useful for the perf PR stream (#2150's 13.5% claim would benefit).

**@⁠catminou4** on GitHub · 2026-11-25 08:02 UTC · [original](https://github.com/Marvisak/VIctory/pull/2188#pullrequestreview-6053835459) · **reviewed** Static review only: docs/tools change — no crate code. Benchmark comparison docs (memory + time) — methodology documentation; useful for the perf PR stream (#2150's 13.5% claim would benefit).
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2188/head:github-bot/gh-2188'
git switch 'github-bot/gh-2188'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2188'
git switch 'github-bot/gh-2188'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2188'
git switch 'github-bot/gh-2188'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2188'
git switch 'main'
git merge --squash 'github-bot/gh-2188'
git switch 'main'
git merge --ff-only 'github-bot/gh-2188'
git switch 'main'
git merge 'github-bot/gh-2188'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2188
No description provided.