Testing: compare Windows benchmark runs with memory and time limits #2186
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2188"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by Razdva122 on 2026-11-25T07:20:45Z.
Implements the comparable Windows benchmark report proposed by @bittertea0323 in issue 819 (currently unavailable on GitHub). The coordination board tracks this independent implementation as NEW-84. Coordination thread
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 are 180 seconds, an 8 GiB process working-set ceiling and a 3 GiB floor for available system memory. These are sampled limits. If free memory is already below the floor before launch, the report records the available memory and marks all six title metrics as unobserved. The default executable is the release build in Cargo’s target directory, including when CARGO_TARGET_DIR is set.
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.The four benchmark self-tests took 1.02 s on Windows at
48f115c. After compiling the test executable, the standalone Cargo command took 1.235 s end to end. The PR adds no CI workflow step. Windows timing · Workspace CIAI-assisted with Codex.
Closes #819. Coordination record for NEW-84
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T08:02:58Z.
Review: COMMENTED
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).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:39:15Z.
Automated triage for the maintainers.
Needs work: needs the maintainer's decision. This adds a step to the CI workflow (
.github/workflows/ci.ymlrunstests/bench.ps1), plus a 275-line PowerShell script (scripts/victory-bench.ps1) that launchesvictory.exeand 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:
xtaskcommand in Rust next tocargo xtask policythan as a PowerShell script, so it builds and is checked like the rest of the repo.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by Razdva122 on 2026-11-28T06:37:33Z.
@Marvisak, could you re-review the benchmark tool at
48f115cand let us know whether the Rust xtask addresses the earlier review? It now runs ascargo xtask bench, and the existing workspace test command exercises it without game data or a new CI step. The four benchmark self-tests took 1.02 s on Windows. This head also finds the release executable under a custom Cargo target directory and reports title metrics as unobserved if the memory guard prevents launch. Timing and test cases · Workspace CIView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.