Skip to content

Land benchmarks, site and README on main; swift-llm-check 0.5.0 - #13

Merged
mackoj merged 7 commits into
mainfrom
chore/land-benchmarks-site-readme
Nov 14, 2026
Merged

mackoj merged 7 commits into
mainfrom
chore/land-benchmarks-site-readme

Conversation

@mackoj

@mackoj mackoj commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Why

#9 → #10 → #11 → #12 were a stack. #9 merged into main, but #10, #11 and #12 were each merged into their parent branch instead of main, so their content ended up on docs/readme-and-metadata and never reached main. This PR lands it: a --no-ff merge of origin/docs/readme-and-metadata (it merges cleanly), plus a migration of Architecture/ to swift-llm-check 0.5.0.

Contents

  • Benchmarks and faster scheme rendering #10: benchmarks and faster scheme rendering. Benchmarks/ (package-benchmark, with P50 and Hotspots tools and scripts/profile.sh), docs/performance.md, and the faster XcschemeTemplate rendering and product-list hashing in Core/, with tests.
  • GitHub Pages landing page #11: website. site/index.html and .github/workflows/pages.yml for GitHub Pages.
  • README: links, install snippet, contributing #12: README. Website and docs links, and install/CLI snippets that match the code. The install snippets say from: "0.5.8", the latest tag.
  • swift-llm-check 0.5.0. Architecture/ uses the built-in Scope.xcTestImports and Scope.disabledTests in place of its own copies, and drops the detector tests that only covered those copies. The built-in disabledTests is stricter about where it matches: only a .disabled trait inside @Test/@Suite, so an enum case like state = .disabled(reason) no longer counts. The Tests/SchemeGeneratorTests/Core exclude in .llm-check.yaml is removed because 0.5.0 never follows symlinks to folders, so each Core file is read once without it. I checked the file list to confirm. Rule ids, titles and docs/architecture-rules.md are unchanged.

Performance (from docs/performance.md)

Release build, M-series Mac, Swift 6.4, p50, before → after:

Benchmark Wall clock p50 (µs) Mallocs p50
Full run without disk, 1000 products 15368 → 1731 (0.11x) 6388 → 3026 (0.47x)
Render schemes, 1000 products 13369 → 519 (0.04x) 4100 → 1000 (0.24x)
Render and encode schemes, 1000 products 14066 → 729 (0.05x) 6100 → 3000 (0.49x)
Hash product names, 100 products 48 → 7 (0.15x) 273 → 11 (0.04x)
Read scheme names, 1000 files 371 → 267 (0.72x) 1912 → 1912
Plan schemes, 1000 products 803 → 782 19 → 19

Checked locally

  • swift build --build-tests && swift test (16 tests)
  • swift test --package-path Architecture (10 tests)
  • swift build --package-path Benchmarks
  • scripts/smoke-test.sh

After merge

No release has been cut since 0.5.8. Once this is merged:

gh release create 0.5.9 --target main --title 0.5.9 --notes "- Faster scheme generation: rendering 1,000 schemes takes 0.5 ms instead of 13 ms, a full run without disk takes 1.7 ms instead of 15 ms, and the product-list hash is about 7x faster (#10).
- Fix: a trailing \`--confFile\` with no value no longer crashes with an index out of range; it keeps the current configuration file name (#9)."

The stale stack branches (docs/readme-and-metadata and the #10/#11 branches) can be deleted after this merges.

…at:)

The full run without disk for 1,000 products drops from 15.4 ms to 1.7 ms
and from 6,388 to 3,026 mallocs. Output is byte for byte the same.
PRs #10, #11 and #12 were stacked and merged into their parent branches
instead of main; this brings their content to main.
Bump swift-llm-check to 0.5.0 and replace the local xcTestImports and
disabledTests detectors with Scope.xcTestImports and Scope.disabledTests.
The built-in disabledTests only matches .disabled inside @Test/@suite
attributes. Drop the DetectorTests that covered the removed copies; the
repo-specific detectors keep theirs.
swift-llm-check 0.5.0 never follows symbolic links to folders, so the
Core symlink is no longer read twice and the exclude is redundant.
@mackoj
mackoj merged commit 2a329fe into main Nov 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant