Skip to content

Skills: perf-report, a weekly release-to-paste report from the app's own log - #120

Merged
dinooo13 merged 1 commit into
mainfrom
skills/perf-report
Nov 7, 2026
Merged

dinooo13 merged 1 commit into
mainfrom
skills/perf-report

Conversation

@dinooo13

@dinooo13 dinooo13 commented Nov 7, 2026

Copy link
Copy Markdown
Owner

The problem

Every few days the question "look at the logs, how is it performing?" goes to an agent, and the agent works out the release-to-paste numbers against the baseline by hand, each time a little differently. Two things make a by-hand answer unreliable:

  • The log forgets. On this M1 the unified log kept the app's timing lines for about 18 hours (on 2026-11-07 at 02:16 the oldest Pladder line was from 2026-11-06 16:51, the oldest kernel line from 02:16). log show --last 7d returns one day, not a week, and says nothing about it.
  • Nothing is remembered between answers. No previous numbers to compare with, no record of which build served which dictations, and no fixed rule for when a difference counts.

What this adds

.claude/skills/perf-report/SKILL.md and perf_report.py beside it (Python 3.9 stdlib, /usr/bin/python3). It only reads: the log, the installed app's Info.plist, settings.json, git and gh. It never runs a benchmark and never launches, quits or kills Pladder.

  • collect copies new release-to-paste lines from /Applications/Pladder.app into a ledger. Worktree and test copies are left out by processImagePath. Each line is stored with the logging binary's UUID, and each run records the installed binary's UUID with its version and build. Numbers only; the line carries no transcript.
  • report collects, then reports the period since the previous report's end (7 days for the first). It gives median, p90, p99 and max by recording length (the baseline's buckets plus 60 s and over), polished dictations by model, and by engine when more than one appeared. It also counts releases that waited 20 ms or more (feed + engine − engine-time, the threshold bench-release uses) and the median remainder, the total minus the logged stages. Each group's median is compared with the previous report and with the BENCHMARKS.md table, read from the doc, not copied into the script. Builds map to main commits through the build number, which is git rev-list --count HEAD, and the commits on the release path in between are listed with their PRs.
  • Rules, printed with every report: a verdict needs 30 plain dictations. A group is compared when both sides have at least 10 (30 for the whole period). Under 10 % is noise. An issue needs a worse group with 20 dictations in the period, or the whole period. Too few dictations exits with 3 and saves nothing, so the next report covers that stretch too.
  • State lives in ~/Library/Application Support/Pladder/perf-report/ (dictations.jsonl, builds.json, reports.json), beside the app's settings and outside the repo; the app never reads that folder.
  • Docs: one paragraph in BENCHMARKS.md, "Reading the app's release-to-paste log", points at the skill. No Swift changes, so no benchmark run.

A T3 scheduled task, "Pladder weekly perf report", Mondays 09:00, is created disabled, to be enabled once this merges.

The first real run

Run on the MacBook Air against the real log, 2026-11-07 02:24, and saved as the first report:

Pladder release-to-paste, 2026-10-31 02:24 to 2026-11-07 02:24

Dictations in the period: 84 (84 plain, 0 polished). New log lines copied to the ledger: 0.
Coverage: the ledger starts 2026-11-06 16:51; the unified log keeps these lines for about a day, so the period before that is missing.
Left out: 1 lines from copies other than /Applications/Pladder.app (worktree and test builds).

Engine (settings.json when the lines were copied): parakeet-ultra-incremental.

Group Dictations Median audio Median p90 p99 Max Waited ≥20 ms Median wait Median remainder
all 84 10.3 s 198 ms 274 ms 327 ms 364 ms 1 200 ms 37.5 ms
under 10 s 41 3.1 s 170 ms 213 ms 240 ms 247 ms 0 – 36.0 ms
10–20 s 18 14.4 s 226 ms 295 ms 356 ms 364 ms 1 200 ms 38.0 ms
20–40 s 15 30.7 s 255 ms 283 ms 294 ms 296 ms 0 – 41.0 ms
40–60 s 5 50.5 s 222 ms 260 ms 269 ms 270 ms 0 – 39.0 ms
60 s and over 5 76.3 s 232 ms 263 ms 279 ms 281 ms 0 – 42.0 ms
Group Against Dictations (now / then) Median now Median then Change Verdict
under 10 s baseline 41 / 67 170 ms 195 ms -13 % better
10–20 s baseline 18 / 28 226 ms 253 ms -11 % better
20–40 s baseline 15 / 17 255 ms 255 ms +0 % noise
40–60 s baseline 5 / 4 222 ms 335 ms -34 % too few

No previous report: this is the first, compared with the baseline only.

Builds that served the period:

  • 0.2.0 (325), binary 51EBA4E9, installed 2026-11-07T01:49:34+01:00: 12 dictations, median 175 ms, remainder 33.5 ms; build 325 is 7f61cf7 on main if it was built from main
  • 16 binaries replaced before a collect saw them installed (local builds), 2026-11-06 16:51 to 2026-11-07 00:44: 72 dictations, median 208 ms, remainder 38.0 ms

Commits on the release-to-paste path (Sources/PladderCore, Sources/PladderEngines, Sources/PladderAudio, Sources/PladderSystem, Sources/PladderRefine, Package.swift, Package.resolved) from e66c030 (the baseline table) to 7f61cf7:

19 more touched only the app target (Sources/Pladder), which shares the main actor: 18d6d67, e7e2173, 992832e, 9b56c4b, 3627b1f, a92726f, 838fb28, fa029cb, 0bd685d, 6e83364, 0234512, b085cfa, 628c5ac, dc1055d, 8bdc8b2, baf7d6c, 432b593, eda7f5d, 4635319

Verdict: better.
Issue-worthy regression: no.
Rules: a verdict needs 30 plain dictations in the period; a group is compared when both sides have 10 (the whole period 30); a change under 10 % is noise; an issue needs a worse group with at least 20 dictations in the period, or the whole period.

(One edit to the state before this run: build 325 was replaced by 326 at 02:22, a minute before the real run, so its builds.json entry was copied from a scratch run of the same script at 02:20, which had seen it installed.)

What it shows, and what it cannot

  • Same or better than the baseline, no issue. Under 10 s and 10–20 s are 13 % and 11 % faster than the 2026-10-29/30 table, in line with Release wait: log the feed hand-over, keep a window pass in flight, feed every 100 ms in every style #92's 100 ms feed. 20–40 s is unchanged. Only one of 84 releases waited for a window pass.
  • The remainder is about 38 ms of a 198 ms median, in every build in the log, the oldest included (16:51 yesterday, before the redesign). bench-coordinator puts the coordinator's own share at 0.02 ms. So in the app, about a fifth of release-to-paste happens between the logged stages, on the main actor. It is not a regression, so no issue was opened. One lead: hotkeyReleased starts the output.prepare() task (the clipboard snapshot) before the task that runs the stages, so on the main actor the snapshot may run first. Worth an issue of its own if you agree.
  • Coverage. A weekly run sees only what the log still holds, about one day. Any collect in between fills the ledger (perf_report.py collect takes a few seconds). A daily collect-only task would give the weekly report a whole week. I left that out, since the brief asked for one weekly task.
  • Local installs churn. 16 binaries served yesterday's 72 dictations. A binary replaced before any run saw it installed has no version, so these are summarised as one line. Release builds stay installed long enough to be named.
  • Engine. The log line does not name the engine, so each dictation is attributed to settings.json's engineID when it was copied. With Managed policy for organisations: pin the engine, force polish and the correction learner on or off, Clipboard mode without Accessibility #109 merged, a managed policy can pin a different engine; the report then prints a note.

🤖 Generated with Claude Code

…own log

The timing lines the installed app logs for every dictation are kept by
the unified log for about a day. perf_report.py copies them into a ledger
under ~/Library/Application Support/Pladder/perf-report, then reports the
period since the last report by recording length and polish, with the
releases that waited for a window pass and the time between stages,
against the previous report and the BENCHMARKS.md baseline. The skill
opens or comments on an issue only for a regression above noise with
enough dictations behind it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dinooo13
dinooo13 merged commit 7912948 into main Nov 7, 2026
4 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