Skip to content

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

Open
Razdva122 wants to merge 2 commits into
Marvisak:mainfrom
Razdva122:codex/benchmark-run-reports
Open

Razdva122 wants to merge 2 commits into
Marvisak:mainfrom
Razdva122:codex/benchmark-run-reports

Conversation

@Razdva122

@Razdva122 Razdva122 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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.

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Owner

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

@Razdva122
Razdva122 force-pushed the codex/benchmark-run-reports branch from 03e8548 to f20593f Compare November 26, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing: a bench script that gives every build the same five numbers (with memory guards)

3 participants