Tests: benchmark shader translation and runtime hot paths #1152
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1152
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1152"
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?
@bmjask on GitHub · 2026-11-24 12:34 UTC · original
bmjask:perf/benchmark-runtime-hotspots→main· +872 −0 · 7 files · 2 commits · openAdds generated-input benchmarks for runtime and shader hot paths, stacked on the benchmark foundation in #1148. The added targets exercise GPU/CPU translation and runtime utility, configuration, and VFS paths without game data.
What is in it
crates/xcl/benches/gpu_cpu.rs: shader translation and GPU/CPU hot-path benchmarkscrates/xcl/benches/runtime.rs: runtime utility, configuration, and VFS benchmarkscrates/xcl/Cargo.toml,Cargo.lock, andREADME.md: benchmark targets, lockfile, and usageTested
f84d850:cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 741 passed, 0 failed, 41 ignored; skippedgpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64)cargo bench -p xcl --benches -- --test: all four targets built and all 68 benchmarks succeededkernelxtest failures; the clean external rerun above passedRegression run
test-onlyapproval on this revision. No paired retail smoke results are available.Not tested
AI use
OpenAI Codex with GPT-5 wrote the implementation. Claude Code with Claude Opus 5.5 ran the external validation and wrote the test report; the contributor checked it before posting.
OpenAI Codex (GPT-6.2 Astra) checked the changed files and CI logs and revised the title and regression-run explanation.
@futurepro62 on GitHub · 2026-11-24 14:30 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
f84d850(on its base47efa2e).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 741 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.gpu::recomptests, starting with a device removal,0x887A0005), but it overlapped other GPU jobs I was running on the same machine. The rerun above, with nothing else on the GPU, is clean.cargo bench -p xcl --benches -- --test(each benchmark run once): all four bench targets (core,formats,gpu_cpu,runtime) build in the bench profile, and all 68 benchmarks reportSuccess. No timings taken.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-25 08:02 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@ivall on GitHub · 2026-11-25 13:51 UTC · original
Review of head
f84d850(stacked on #1148, so this PR needs #1148 first). I read the whole diff (benches/gpu_cpu.rs,benches/runtime.rs, Cargo/README/lockfile) before building: no process spawning, no network, no build.rs, no workflow changes, no binaries; inputs are generated, the VFS benchmark only classifies path strings and touches no files.Tested on the stack tip (#1148 + #1152 + #1153 merged onto current main): AMD RDNA4, Windows, DXC 1.8.2502.11, debug.
cargo build --workspace: okcargo test --workspace --no-fail-fast -- --test-threads=4: 1263 passed, 2 failed, 46 ignored; the two failures are the knownfuzz_validate_and_gpu_1and_3(#2115), also failing on main.hle::kernelx::tests::a_page_away_from_home_is_committed_onceanda_page_whose_move_fails_stays_mapped_where_it_was(page commit/move tests in kernelx.rs, host virtual memory), passed in the full run here and again alone (4 passed, 0 failed with thea_pagefilter). The PR changes no production source, so I judge them flaky and unrelated to it (CI passed on the stack tip #1153, which contains the same code).cargo bench -p xcl --bench gpu_cpu -- --test: 18 benchmarks succeeded;--bench runtime: 29. With #1148's 21 that is 68. No timings taken.Same dependency finding as in #1148: criterion is dev-only, but its transitive
ciboriumcrates are Apache-2.0 only, which CONTRIBUTING.md excludes. Not merging until that is decided; leaving this PR open.AI use: Claude Code (Claude Sonnet 5.5) read the diff, ran the tests and wrote this on the maintainer's behalf.
View 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.