mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 23:33:29 +00:00
One run of scripts/bench/run.ts against the seeded account (1,266,549 measurement rows, anchor 2026-10-22), 20 measured requests per row after 3 warm-up requests, web-only production build, 792 MB heap ceiling, Postgres 16.15. The commit adds only lint rules, guards, tests and scripts on top of v1.44.0, so the server code measured is the v1.44.0 code. Cold (caches evicted before each request), p95 and statements per request: /api/auth/me 17 ms / 19, dashboard summary 233 ms / 31, dashboard snapshot 2253 ms / 158, pulse series 30 d 59 ms / 8, 365 d 311 ms / 8, 3650 d 2118 ms / 8, day view 78 ms / 49, insights health status 140 ms / 68, correlations 105 ms / 45. Warm, the snapshot is 24 ms / 13 and the 3650-day series still 1506 ms, since that read is not cached. The 5,000-row batch ingest took 1722 ms and 424 statements over ten requests. The machine was shared with other work during the run (load average 8 to 20), so latency is indicative; the statement counts do not depend on it. The results directory is written by the script and left out of prettier, so a re-run diffs cleanly.
28 lines
717 B
Plaintext
28 lines
717 B
Plaintext
node_modules
|
|
.next
|
|
out
|
|
build
|
|
coverage
|
|
|
|
# Prisma-generated client.
|
|
src/generated
|
|
|
|
# Lockfile — owned by pnpm.
|
|
pnpm-lock.yaml
|
|
|
|
# Generator-owned API contract. The openapi:check job enforces its exact
|
|
# bytes against the Zod registry, so prettier must never rewrite it.
|
|
docs/api/openapi.yaml
|
|
|
|
# Build-generated service worker (the PWA build emits it).
|
|
public/sw.js
|
|
|
|
# Ratchet baselines, written by the guards themselves (RATCHET_WRITE=1). The
|
|
# writer's JSON layout is the canonical one, so a write-back never fails the
|
|
# format check.
|
|
src/__tests__/baselines
|
|
|
|
# Benchmark results, written by scripts/bench/run.ts and committed as they
|
|
# come out, so a re-run diffs cleanly against the last one.
|
|
scripts/bench/results
|