Benchmarks
Measured by npm run budgets against the built package. Timings are the best of 15 runs,
because load on the machine only ever makes a run slower. npm run ci runs the same
measurements before every push, and the hosted CI runs them when it is started (D-028).
A broken budget fails the run.
Machine: Apple silicon, macOS 26.3, Node 22.17.1. Node itself starts in 25 to 36 ms here, depending on what else the machine is doing.
| Budget | Limit | Measured | Milestone |
|---|---|---|---|
clara --version cold start |
100 ms | 42 ms | M0 |
| Packed npm tarball | 3 MB | 0.19 MB | M1 |
clara list on 1,000 tickets |
200 ms | 141 ms | M2 |
| Board data for 10,000 tickets, warm | 500 ms | 72 ms | M1 |
| Web first load, gzipped | 100 KB | 91.0 KB | M4 |
| Any lazy web chunk, gzipped | 60 KB | 27.6 KB (lib/markdown.ts) |
M4 |
What each one measures
clara --version cold start. A new Node process running dist/cli.js --version. The
version path loads no library code, so this is Node's own start-up plus one small file.
Packed npm tarball. npm pack --dry-run of the package as published: the built
JavaScript, the type declarations, the README and the licence.
clara list on 1,000 tickets (scripts/budgets-library.mjs). A board of 1,000 tickets
is written to a temporary folder by the same seeded generator, then a new Node process runs
the built clara list there, the way a person types it. The time includes Node's own
start-up, loading Clara, asking git for the user's name, looking at every ticket file, and
printing the table. The board is measured once its files have settled, as a real board's
mostly have between two commands, so the files the command before parsed are reused from
the cache the CLI keeps under CLARA_HOME (D-042), and the code Node compiled of Clara is
kept there too (D-123): 112 to 115 ms. The first command on a board, or the first after
Clara is updated, reads and parses every file and writes that cache. It is reported on its
own line and not enforced: about 165 ms on this machine. DECISIONS D-038, D-042 and D-123
list what brought list down from 230 ms and what was tried and rejected. On Windows the limit is 400 ms, set from the hosted CI's
first measurement there (D-071, and the table below).
Board data for 10,000 tickets, warm (scripts/budgets-library.mjs). A board of 10,000
ticket files is written to a temporary .clara through the built clara-ipm/node, with statuses,
types, priorities, people, agents, labels, sprints and dependencies spread over it by a seeded
generator. It is read once to fill the cache. The measured step is ticket.list over every
live ticket, which the web board runs whenever the board changes: it lists the folder,
checks each file's tag against the cache, then queries and sorts the result.
Web first load, gzipped (scripts/build-web.mjs). The script, the styles and the page
the board's first screen needs, gzipped as a browser receives them, after npm run build. The
build fails when it is over the limit. Measured on 2026-11-28 at 91.0 KB.
Any lazy web chunk, gzipped. Each page past the first screen is its own chunk, loaded when it is opened. The largest is the Markdown renderer, 27.6 KB; then the Brain page, 18.4 KB, and Home, 10.9 KB. Every other page is under 10 KB.
On the hosted CI
The hosted CI runs the same measurements on each system it tests. These are from run
44199352044 at e8dc257 (2026-11-17), Node 24, best of 15 runs. The runners are shared
machines, so their numbers vary from run to run more than a quiet laptop's.
| Budget | Limit | Ubuntu | macOS | Windows |
|---|---|---|---|---|
| Node's own start-up (not a budget) | 19.4 ms | 33.3 ms | 46.4 ms | |
clara --version cold start |
100 ms | 22.3 ms | 36.4 ms | 53.1 ms |
| Packed npm tarball | 3 MB | 0.24 MB | 0.24 MB | 0.24 MB |
clara list on 1,000 tickets |
200 ms; 400 ms on Windows | 124.2 ms | 151.6 ms | 303.8 ms |
clara list, first run (reported) |
170.5 ms | 257.6 ms | 503.3 ms | |
| Board data for 10,000 tickets, warm | 500 ms | 51.1 ms | 79.4 ms | 210.8 ms |
Windows starts processes and opens files two to four times slower than the others, which is
why clara list has a limit of its own there (D-071). From the next run on, the budget
output also gives how long git config user.name takes, because clara list waits for it.
Other numbers worth knowing
These are not budgets, but they set expectations.
| What | Measured |
|---|---|
| Board data for 10,000 tickets, cold (every file read and parsed) | about 1,000 ms |
clara list on 1,000 tickets, first run (no cache yet) |
about 165 ms |
| One commit of 1,000 files on disk, with fsync | 3.6 s |
| One commit of 1,000 files on disk, without fsync | 0.22 s |
Disk storage fsyncs the journal and every file it writes before it reports a commit done.
On macOS, Node's fsync is F_FULLFSYNC, which flushes the drive's cache and costs about
3.5 ms a file. An operation writes one to three files, so it pays a few milliseconds. A
commit that rewrites thousands of files, such as a format migration of a large board, pays
the same per file, so 10,000 files take about 35 seconds. Issuing the fsyncs in parallel
was measured at 2 to 3 times faster; it is listed as a follow-up in docs/PROGRESS.md
rather than done now, because it would turn the synchronous, crash-tested commit path
asynchronous.