Add synthetic Cargo benchmark suite #132

Closed
github-bot wants to merge 7 commits from gh-pr/132/head into gh-pr/132/base
Owner

@⁠bmjask on GitHub · 2026-11-23 14:12 UTC · original
bmjask:codex/benchmark-suite → main · +942 −0 · 9 files · 7 commits · closed without merging

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
**@⁠bmjask** on GitHub · 2026-11-23 14:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/132) `bmjask:codex/benchmark-suite` → `main` · +942 −0 · 9 files · 7 commits · closed without merging ## 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
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:11:42 +00:00
github-bot closed this pull request 2026-11-26 04:11:42 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-23 21:09 UTC · original

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

**@⁠ivall** on GitHub · 2026-11-23 21:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/132#issuecomment-7114083683) 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).
Author
Owner

@⁠raylitebull on GitHub · 2026-11-24 10:43 UTC · original

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

**@⁠raylitebull** on GitHub · 2026-11-24 10:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/132#issuecomment-7129155532) 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

This discussion has been locked. Commenting is limited to contributors.
No description provided.