Skip to content

benchmarks(errors): measure Citry from this repository (29 to 54 of 61 before the app runs) - #241

Merged
JuroOravec merged 7 commits into
mainfrom
benchmarks/errors-citry-unreleased
Oct 22, 2026
Merged

JuroOravec merged 7 commits into
mainfrom
benchmarks/errors-citry-unreleased

Conversation

@JuroOravec

@JuroOravec JuroOravec commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

The error benchmark now measures Citry built from this repository instead of Citry 0.6.0 from PyPI. The next release then ships with its benchmark results and the Benchmarks page already up to date. This follows the maintainer's decision for this release.

Citry before and after

Outcome Citry 0.6.0 (published) Citry from this repository
Static/IDE error 28 47
Static/IDE warning 1 7
Runtime error 12 2 (m50, m61)
Missed 20 5 (m14, m16, m30, m42, m60)
N/A 2 2
Before the app runs 29 of 61 54 of 61

Changed cells, all Citry:

  • To error:
    • from missed: m10, m11, m18, m27, m28, m32, m33, m44, m54, m57, m62;
    • from runtime error: m19, m21, m36, m37, m51, m52, m63;
    • from warning: m09.
  • To warning:
    • from missed: m29, m31, m43, m53;
    • from runtime error: m45, m48, m41 (m41 is reported away from the mistake's line, with an indirect note).

No other framework's cells changed.

Final results (63 mistakes)

Framework Before the app runs Static/IDE error Static/IDE warning Runtime error Runtime warning N/A or prevented Missed
Citry 54 of 61 47 7 2 0 2 5
Next.js (TypeScript) 45 of 57 44 1 4 0 6 8
Reflex 38 of 54 38 0 4 0 9 12
Nuxt (TypeScript) 39 of 58 39 0 3 2 5 14
ReactPy 24 of 56 24 0 10 1 7 21
FastHTML 20 of 48 20 0 10 0 15 18
django-unicorn 12 of 55 12 0 13 0 8 30
Tetra 9 of 57 8 1 16 0 6 32
Rusty + HTMX + Alpine 6 of 50 6 0 17 0 13 27
Django + HTMX + Alpine 6 of 52 6 0 15 0 11 31
django-components + HTMX + Alpine 6 of 54 6 0 21 0 9 27
Jinja + HTMX + Alpine 5 of 51 5 0 27 0 12 19

How Citry is installed

  • Packages: the Citry app installs citry and citry-lsp from packages/py/. citry-core stays the published 1.8.0 wheel, since nothing in crates/ or packages/py/citry_core has changed since that release.
  • Reinstalls: the runner reinstalls whenever a file in those package folders changes. Stored results are keyed by the files actually installed. Before installing, the runner checks the Citry app's lock and that its citry-core override matches citry's own pin.
  • Recorded: run.json and the report header name the packages installed from this checkout, with their tree ids.
  • Benchmarks page: "How we measured" says which Citry was measured.
  • m41: the runner now reads Citry findings whose location includes the component method, such as board_page.py (app.components.board_page.BoardPage.js_data). That lets it count Citry's new m41 warning.

Evidence

  • Runs: two full fresh runs of 12 frameworks took 13.7 and 14.4 minutes. The published run reused a final fresh run after a notes-only change, and its cells match that run exactly.
  • Tests and docs: the runner tests (194) and the docs tests pass. The docs build check reports 0 errors.
  • Reviews: two independent code reviews, a first-time-reader review, and a separate fact and prose check.

Version

The Benchmarks page names the measured Citry as the code that ships as Citry 0.6.1, measured before its release.

🤖 Generated with Claude Code

JuroOravec and others added 7 commits October 21, 2026 19:37
The Citry app installs citry and citry-lsp built from packages/py/ instead
of the PyPI releases, with citry-core still from PyPI at the version citry
pins, so a release can ship with its benchmark results already measured.

- The setup step and the stored results follow the sources: both digests
  hash the git-listed files of every package installed from disk, and
  the setup step reinstalls them from their current sources.
- run.json records which packages came from the repository, and the
  report names them with the commit.
- citry check's `path (module.Class.member)` origin, used for a
  js_data() value, now maps to its file line; m41's warning there is an
  accepted indirect report.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… files

- Setup stops when the Citry app's uv.lock no longer matches the sources
  it installs from disk (`uv lock --check`), since `uv sync --frozen`
  would install it anyway, and removes setuptools' build/ folder first so
  a deleted module is not installed from an earlier build.
- Stored results follow the files the environment installed for those
  packages (their RECORD), not every file in their folders, and a path
  named only by the setup step no longer ties results to the checkout.
- The Citry parser also places `Class.JsData.field` and
  `path (module.Class)` findings on their file line.
- Notes describe what the measured Citry sources report.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…check

- Setup stops when the Citry app's citry-core override no longer matches
  the version citry pins: the lock records only the overridden version,
  so `uv lock --check` cannot see a new pin.
- The lock check ignores UV_FROZEN, which would accept any lock, and
  reports a missing uv plainly; build/ is removed only when git ignores
  it; an editable package from disk is rejected, because it installs no
  files to key stored results by.
- A path named only in the setup step or the notes no longer ties stored
  results to the checkout.
- README and the Citry, django-components and Nuxt notes describe what
  the measured Citry sources report.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Citry built from this repository's sources reports 54 of the 61 mistakes
that apply to it before the app runs (47 errors, 7 warnings), where
Citry 0.6.0 reported 29. Every other framework's cells are unchanged.

The published run, its docs data, the Benchmarks page's "Catching
errors" section and the README describe the new results and say which
Citry was measured.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JuroOravec
JuroOravec changed the base branch from main to fix/render-bugs-235 October 22, 2026 07:19
@JuroOravec
JuroOravec added this pull request to stack #219 October 22, 2026 07:20
Base automatically changed from fix/render-bugs-235 to main October 22, 2026 07:23
@JuroOravec
JuroOravec merged commit 787faf4 into main Oct 22, 2026
4 checks passed
@JuroOravec
JuroOravec deleted the benchmarks/errors-citry-unreleased branch October 22, 2026 07:26
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