Add synthetic Cargo benchmark suite #130

Closed
bmjask wants to merge 7 commits from upstream-pr/132 into main
bmjask commented 2026-11-23 14:12:46 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-23T14:12:46Z.


Summary

  • add Criterion-backed cargo bench support with four explicit benchmark targets
  • add 67 deterministic synthetic benchmarks covering RDNA2 decoding and analysis, recompiler translation, shader and container scanning, descriptors, PE/RPF/config/manifest parsing, VFS classification, and runtime utilities
  • document full-suite, per-target, and saved-baseline commands
  • keep all benchmark inputs synthetic or repository-built; no title executable, game files, or compatible GPU are required

Benchmark targets

  • core: quick smoke baselines
  • formats: instruction streams, descriptors, PE/RPF, manifest and configuration formats
  • gpu_cpu: CPU-side shader/recompiler pipeline work
  • runtime: VFS, configuration and utility paths

Verification

  • cargo bench -p xcl --no-run
  • all 67 Criterion cases passed smoke mode across the four targets
  • cargo build --workspace
  • full serial workspace suite passed: 497 library tests passed, 16 ignored, 0 failed, plus all integration and end-to-end suites
  • benchmark throughput labels independently reviewed and corrected
  • git diff --check

The only emitted warning is the existing unrelated atomic API deprecation.

Flamegraph workflow

  • retain line-level debug information in optimized benchmark builds
  • add scripts/flamegraph.ps1 for whole-target or filtered Windows CPU profiles
  • validate tool availability and propagate profiler failures without installing tools or requesting elevation
  • document generated SVG paths and when to use PIX/WPA for GPU or off-CPU analysis
<!-- greyfinch-sync:ivall/xcl:issue:6561210846 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/132). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-23T14:12:46Z. --- ## Summary - add Criterion-backed `cargo bench` support with four explicit benchmark targets - add 67 deterministic synthetic benchmarks covering RDNA2 decoding and analysis, recompiler translation, shader and container scanning, descriptors, PE/RPF/config/manifest parsing, VFS classification, and runtime utilities - document full-suite, per-target, and saved-baseline commands - keep all benchmark inputs synthetic or repository-built; no title executable, game files, or compatible GPU are required ## Benchmark targets - `core`: quick smoke baselines - `formats`: instruction streams, descriptors, PE/RPF, manifest and configuration formats - `gpu_cpu`: CPU-side shader/recompiler pipeline work - `runtime`: VFS, configuration and utility paths ## Verification - `cargo bench -p xcl --no-run` - all 67 Criterion cases passed smoke mode across the four targets - `cargo build --workspace` - full serial workspace suite passed: 497 library tests passed, 16 ignored, 0 failed, plus all integration and end-to-end suites - benchmark throughput labels independently reviewed and corrected - `git diff --check` The only emitted warning is the existing unrelated atomic API deprecation. ## Flamegraph workflow - retain line-level debug information in optimized benchmark builds - add `scripts/flamegraph.ps1` for whole-target or filtered Windows CPU profiles - validate tool availability and propagate profiler failures without installing tools or requesting elevation - document generated SVG paths and when to use PIX/WPA for GPU or off-CPU analysis
ivall commented 2026-11-24 07:04:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-23T21:09:31Z.


Not merged in this round: it adds benchmark dependencies to the workspace and is behind main by 60+ commits. Please rebase on main (6da33fa) and say what the benches are meant to catch (a regression gate or a manual tool).

<!-- greyfinch-sync:ivall/xcl:comment:7114083683 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/132#issuecomment-7114083683). Originally posted by [ivall](https://github.com/ivall) on 2026-11-23T21:09:31Z. --- Not merged in this round: it adds benchmark dependencies to the workspace and is behind main by 60+ commits. Please rebase on main (6da33fa) and say what the benches are meant to catch (a regression gate or a manual tool).
upstream-sync closed this pull request 2026-11-24 11:04:35 +00:00
raylitebull commented 2026-11-24 11:05:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-24T10:43:17Z.


Closing as a stale, conflicting PR that was previously passed over due to added workspace benchmark dependencies and being far behind main.

<!-- greyfinch-sync:ivall/xcl:comment:7129155532 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/132#issuecomment-7129155532). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-24T10:43:17Z. --- Closing as a stale, conflicting PR that was previously passed over due to added workspace benchmark dependencies and being far behind `main`.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!130
No description provided.