Tests: add synthetic core and format benchmarks #1148
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!1148
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1148"
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:33 UTC · original
bmjask:perf/benchmark-core→main· +481 −0 · 5 files · 1 commits · openAdds Criterion targets for RDNA2 instruction handling, descriptors, parsers, shader-pack scans, and PE parsing. Inputs are generated or come from the benchmark executable, so no game data is required.
What is in it
crates/xcl/benches/core.rs: focused decoder and descriptor microbenchmarkscrates/xcl/benches/formats.rs: generated-input format, pack, and PE benchmarkscrates/xcl/Cargo.toml,Cargo.lock, andREADME.md: Criterion targets, lockfile, and usageTested
f73d165: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 -- --test: both targets built; all 21 benchmarks succeeded; xcl lib tests in the bench profile: 698 passed, 0 failed, 21 ignoredRegression 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 and original description. 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:25 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
f73d165(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.cargo bench -p xcl -- --test(each benchmark run once): both new bench targets (core,formats) build in the bench profile, and all 21 benchmarks reportSuccess; the xcl lib tests in that profile: 698 passed, 0 failed, 21 ignored. 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
f73d165. I read the whole diff before building anything: two bench files, a Cargo change (dev-dependency and four[[bench]]entries), README text and the lockfile. No process spawning, no network access, no build.rs, no workflow changes, no binaries. The benchmarks only call public xcl APIs on generated input (the PE benchmark parses the bench executable itself).Tested on the stack tip (#1148 + #1152 + #1153 merged onto current main, since the three are stacked; this PR's files are a subset): 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 knowngpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1and_3(#2115), also failing on main.cargo bench -p xcl --bench core -- --testand--bench formats -- --test: 2 + 19 = 21 benchmarks succeeded. No timings taken.Dependency finding:
criterion 0.7is a dev-dependency only (not incargo tree -e normal,build), and Cargo.lock only adds 28 crates, no existing crate is bumped. Licences are dual MIT/Apache-2.0 or similar exceptciborium,ciborium-ioandciborium-ll, which are Apache-2.0 only and are pulled in by criterion itself (it cannot be disabled withdefault-features = false). CONTRIBUTING.md says dependencies must be GPL-2.0-compatible and names Apache-2.0-only as not allowed. They never end up in xcl.exe or the test binaries, only in the local bench executables, but this is not my call to waive, so I am leaving the PR open and not merging. Options: the maintainer accepts a bench-only exception, or the benchmarks use a harness without ciborium (for example a smallstd::timeharness, or a different crate).Also: the
PR descriptioncheck fails because the regression-run blocks are missing; for a bench-only diff that is what thetest-onlylabel is for, which only the maintainer applies.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.