Skip to content

docs: make the Benchmarks page easy to skim - #737

Merged
JuroOravec merged 2 commits into
mainfrom
docs/benchmarks-skimmable
Nov 16, 2026
Merged

JuroOravec merged 2 commits into
mainfrom
docs/benchmarks-skimmable

Conversation

@JuroOravec

Copy link
Copy Markdown
Member

Each section of the Benchmarks page now opens with Citry's numbers and how they compare, followed by the chart. Every fact and every linked anchor stays on the page. The change is in docs_site/content/about/benchmarks.md only.

Closes #734

New structure

  • Performance: a summary with Citry's 315 ms first load and 257 ms second load, which frameworks are faster, and the noise threshold, then both charts. "Where Citry stands" follows as short labelled bullets. "How to read the charts" is a collapsed block. Under "How we measured" (anchor #how-the-numbers-were-taken kept), the noise rule and the measurement dates stay visible, and the versions and repeat runs are collapsed.
  • Catching errors: what was measured, then Citry's 54 of 61 compared with Next.js, Nuxt, Reflex and the HTMX + Alpine apps, then the chart. The chart legend is now a table. The per-framework counts, the 7 warnings, the 2 runtime-only mistakes, the 5 missed mistakes and "why Next.js, Nuxt and Reflex come next" are each in a collapsed block. Under "How we measured" (anchor #errors-how-we-measured kept), a short paragraph stays visible. Citry's exact build, the tools run for each framework, and the stricter settings are collapsed.
  • The six framework descriptions moved out of the middle of "Catching errors" into one table, "Error benchmark apps", at the end of that section. The Rusty line stays in the performance section as well.
  • Collapsed blocks use pymdownx.details, which the site already enables and styles.

Words before each section's first chart

Section Before After
Performance 27 (no Citry numbers) 72 (Citry's numbers and the comparison)
Catching errors 204 (framework descriptions) 133 (Citry's 54 and the comparison)

About 1,190 words are visible with the collapsed blocks shut, out of about 2,190 on the old page.

Checks

  • python -m docs_site build-check --strict passes: 0 errors, 0 warnings, and the same 29 info items as origin/main. None of them are on this page.
  • I took screenshots at desktop width (1400 px) and phone width (390 px) through the live docs server. The tables wrap or scroll inside the page, and the collapsed blocks render.
  • No em dashes. Every heading is 20 characters or fewer.
  • The anchors that README.md, docs_site/content/index.md and docs_site/scripts/benchmark_readme.py link to still exist. Only #what-the-charts-show is gone, and nothing in the repository links to it.

Review findings and what changed

An independent fact and prose reviewer:

  • The framework table read as if it also described the apps in the performance benchmark. I scoped it to the error benchmark ("Error benchmark apps", inside "Catching errors") and kept the Rusty line in the performance section, as the old page had it.
  • The lead paragraph of the errors "How we measured" said too much: that all of Citry was built from the commit (citry-core 1.8.0 came from PyPI), and that each tool was "the framework's own". Fixed.
  • The 54 in the summary lacked its version. It now says the build predates 0.7.0.
  • I restored the link from "within the noise" to "How we measured".
  • Prose fixes: details titles, "Reflex, close behind Nuxt", and the table column header.

The docs-cold-reader agent:

  • The summaries used "noise" without a pointer and hid that Citry and the other frameworks were measured on different days. Both now show on the visible text: "noise" links to the method, and the dates are a visible sentence.
  • The error summary started with results before setup and did not explain why the totals differ. I reordered it and added that each count leaves out the mistakes that don't apply.
  • The "What Citry checks" label was lost and the following paragraph had an unclear "they". I restored the label and named both tools.
  • The bullets "Warning only: 7" and "54 of 61" read as separate groups that add up to 68. The bullet now says "7 of those 54".
  • "citry-lsp" in visible text became "its language server".
  • Not taken: renaming the two pairs of identical headings ("Where Citry stands", "How we measured"). They sit under different sections in the sidebar, and one of each pair carries an anchor that other pages link to. Also not taken: claims that the old page did not make (for example, whether the error run has been repeated on 1.0.0, or server and browser times in ms). This change keeps the page's content as it was.

🤖 Generated with Claude Code

JuroOravec and others added 2 commits November 16, 2026 10:03
Open each section with Citry's numbers and how they compare, then the
chart. Fold method details, per-mistake lists and the per-framework
counts into collapsible blocks, turn the error chart legend into a
table, and move the framework descriptions into one table at the end.
Every fact and anchor on the page stays.

Closes #734

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@JuroOravec
JuroOravec merged commit 9a81e19 into main Nov 16, 2026
19 of 21 checks passed
@JuroOravec
JuroOravec deleted the docs/benchmarks-skimmable branch November 16, 2026 09:22
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.

docs: make the Benchmarks page easy to skim

1 participant