Repository navigation
Conversation
catminou4
left a comment
There was a problem hiding this comment.
Static review (macOS, no PowerShell here — the fixture test needs a Windows/pwsh run, which I could not execute): the script pairs 2 s activity samples by index up to the shorter run, extracts first-frame time and peak commit, and throws a clear error when a log has no activity samples. The regexes use named groups consistently and the memory line is only attributed after the first sample exists. compare-perf.tests.ps1 covers the happy path, the missing-activity error, and asserts the output never leaks the private-path fixture line or the out-of-window 999 MB sample — good privacy hygiene for perf logs. One observation, not a blocker: pairing is by sample index, so if one run stalls and its 2 s samples drift relative to the other's, presents-per-sample stop being comparable; the header line reporting both sample counts makes that visible to the reader.
|
The submitted fixtures pass on Windows with PowerShell 7.6.9. One scaling issue at A local change to a UTF-8 Verification assisted by OpenAI Codex (GPT-6.2 Astra). |
|
Linux / AMD RDNA3 datapoint. Merged state: head Full suite, Footnote: Not tested: retail titles (none here), Windows, RDNA4. Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting. |
|
Independent verification, merged onto current Machine: Windows 11, Ryzen 9 7900X; Windows PowerShell 5.1.
AI use: test runs by Devin (Cognition, SWE-2); no code changes. |
|
Tested
Not tested
AI use OpenAI Codex (GPT-6, exact variant not exposed in this session) reviewed the exact diff, ran the fixture and existing-log comparison, checked their outputs, and drafted this report. |
|
Retested the incorporated streaming change on I tested @ettehn’s streaming suggestion on I compared a 443,050-byte UTF-16LE log against itself while a writer held it open. It contained 8,192 non-metric lines between two samples and ended with a memory record without a final newline. I supplied a relative bracketed filename after changing the PowerShell working directory. The complete formatted output matched the original byte for byte within each shell, including the last 456 MB sample. In one fresh process per revision and shell, peak working set was 177.3 → 115.6 MiB on Windows PowerShell 5.1 and 121.4 → 108.0 MiB on PowerShell 7.6.9. These include shell overhead. Windows 11 26100.9711, Core i7-13700. Synthetic logs only. OpenAI Codex (GPT-6) implemented the suggested change, ran the checks and prepared the report. |
813a217 to
7066e9b
Compare
Pair activity samples from startup so performance reports compare a common window. Read the first displayed frame and sampled commit from existing logs. The logs are read one line at a time with read, write and delete sharing, so a large log is not held in memory and a log XCL still writes can be compared (suggested by ettehn; the change is RavenCurseBurg's). Assisted-by: Codex (GPT-6) Co-Authored-By: RavenCurseBurg <[email protected]>
7066e9b to
21811e4
Compare
|
@ettehn @RavenCurseBurg thanks: the streaming read is in, as @RavenCurseBurg's commit with credit ( AI use: Claude Code (Claude Opus 5.5) did the rebase, took in the change, ran the checks and wrote this reply. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
Startup and loading comparisons currently require pulling counters and timings out of two logs by hand. This script pairs activity samples from startup up to the shorter run.
What is in it
scripts/compare-perf.ps1compares presentation counts, DirectStorage requests, first displayed frame time, and peak sampled process commit from existing logs. Output contains metrics only.Tested
Windows build 26300, RTX 4070 (617.14), Core i7-13700F, Rust 1.100.0 MSVC.
Rebased onto
maine1d84b7(2026-11-26; README conflict next to the collapsed section, both kept), head21811e4:powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File .\scripts\compare-perf.tests.ps1: all three fixture checks passed (the third is the streamed read of a log held open by a writer).cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1423 passed, 0 failed, 46 ignored. SKIPPED: the wave64 GPU tests (no wave64), a direct-DXIL f16 case refused per gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426,heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(Developer Mode is off) and the D3D12 debug-layer tests.Earlier runs, on
813a217before the rebase:powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\compare-perf.tests.ps1: both fixture checks passed. Also compared two real 45-second traces on this machine (22 common samples).cargo build --locked --workspacesucceeded. Thencargo test --locked --workspace --no-fail-fast -- --test-threads=1 --nocapture: 716 passed, 0 failed, 41 ignored. Four runtime GPU skips are included in the pass count: two for wave64 and two for the D3D12 debug layer.Not tested
PowerShell 7, Linux, and macOS. Workspace tests ran without optional retail sample variables.
AI use
Codex (GPT-6) implemented the script, wrote the fixture and documentation, ran the checks, and drafted this PR. Claude Code (Claude Opus 5.5) did the rebase, took in the streaming change, ran the post-rebase checks and updated this description.