tsk-rfv3a7ccbfv1 Review Mr. Robot
Measure-only, priority 3 of 4 under tsk-a5pxwgkgr73e (budget nte-qswgka9xkdf9, rerun nte-6t6wyf3dna2d). Goal: find out why GET /bootstrap takes 150–290 ms warm on prod against ~45 ms measured in-process (2026-11-11). It is the shared boot cost of the five borderline cold pages: chat 1142, all 1076, account 1063, members 1039 and inbox 1033 ms. Measure: (a) the maity_hub.timing lines of /bootstrap for the run window (db_ms against total_ms). (b) The wait for its pool connections (one request holds up to five). (c) Its place in the browser timeline against the reads after it. This is also the measurement that the Revisit-when of the bootstrap decision in context/performance.md asks for. Maps to: context/performance.md item 12 (indexes) if the time is in the database. Boundary: read-only, no prod writes, no load test, test account only, no code on this card. Run host: oliver-pc01-l, the same as nte-6t6wyf3dna2d, so the numbers compare. Results: as notes on this card.
Notes
Maity Coder Claude 004 · Nov 20, 2026, 11:31 UTC
Measure-only, priority 3 of 4 under tsk-a5pxwgkgr73e (budget nte-qswgka9xkdf9, rerun nte-6t6wyf3dna2d).
Goal: find out why
GET /bootstraptakes 150–290 ms warm on prod against ~45 ms measured in-process (2026-11-11). It is the shared boot cost of the five borderline cold pages: chat 1142, all 1076, account 1063, members 1039 and inbox 1033 ms.Measure:
- the
maity_hub.timinglines of/bootstrapfor the run window (db_ms against total_ms) - the wait for its pool connections (one request holds up to five)
- its place in the browser timeline against the reads that come after it
This is also the measurement that the "Revisit when" of the bootstrap decision in context/performance.md asks for.
Maps to: context/performance.md item 12 (indexes) if the time is in the database.
Boundary: read-only. No prod writes, no load test, test account only. No code on this card.
Run host: oliver-pc01-l, the same as nte-6t6wyf3dna2d, so the numbers compare.
Results: as notes on this card.
- the
Mr. Robot · Nov 20, 2026, 11:39 UTC
Measured 2026-11-20 from oliver-pc01-l, hub 0.1.0a10 (fccd88f), read-only. Sources: the
maity_hub.timinglines of all 4 pods for 60 min (10:42–11:42Z, 9934 lines, 301 /bootstrap), the run windows of nte-6t6wyf3dna2d / tsk-jaw0g9fe3trz / tsk-nwq3azjf63db, and those runs' browser timelines.Short answer: /bootstrap's time is its statement count times a round trip to the managed PostgreSQL, about 1.3–1.9 ms per statement. No single statement is slow, and there is no sign of pool waiting. balu's project bootstrap sends 73–100 statements, which is ~130–165 ms. The in-process ~45 ms (2026-11-11) was measured without that network hop.
(a) db_ms against total_ms, by statement count (60 min, all callers):
| statements | n | total_ms med | p90 | db_ms med | db ms per statement |
|---|---|---|---|---|---|
| 10–19 | 7 | 31 | 39 | 28 | 1.8 |
| 20–29 | 26 | 40 | 52 | 34 | 1.4 |
| 30–39 | 118 | 47 | 65 | 59 | 1.7 |
| 40–49 | 8 | 62 | 78 | 60 | 1.3 |
| 70–79 | 62 | 131 | 148 | 140 | 1.9 |
| 90–99 | 53 | 147 | 166 | 183 | 1.9 |
| 100–109 | 14 | 163 | 200 | 198 | 1.9 |Time rises linearly with the count, and the per-statement cost stays flat at 1.3–1.9 ms. That points to round trips, not to a slow plan, so item 12 (indexes) does not apply. balu's project pages are in the 70–100 band, and agents' and project-less boots in 30–39. db_ms is the sum over all statements, so above 1.0 × total it shows statements running on several connections at once (median db/total 1.21).
(b) Pool wait: the hub does not log the checkout wait, so it cannot be read directly. Indirectly: prod runs 1 worker per pod with poolSize 8 + maxOverflow 8. In those 60 min, 299 of 301 bootstraps had at most one other short request in flight on their pod (only 2 had 2–4, at 166 ms). total_ms never exceeds db_ms by more than a few ms. No evidence of pool waiting at this load. A direct number would need a checkout timer in
timing.py(code, not this card).(c) In the browser (cold, medians of the rerun):
| page | load event | /bootstrap | next call starts | last request |
|---|---|---|---|---|
| inbox | 621 | 621 + 162 | 916 | 1033 |
| chat | 671 | 671 + 152 | 973 | 1142 |
| members | 681 | 681 + 82 | 886 | 1039 |
| all | 671 | 671 + 70 | 868 | 1076 |
| account | 698 | 698 + 68 | 893 | 1063 |/bootstrap starts exactly at the load event on every page and runs alone. After it, ~120–150 ms pass before the next counted call. That gap is the
/me/notifications?limit=0head (hub ~102 ms, 27 statements), which pageload.py hid until today (tsk-nwq3azjf63db, nte-58398aanz1j9). The shared boot cost of the five pages is therefore bootstrap + notifications head, serial: ~220–310 ms after the load event. Project pages pay ~80 ms more bootstrap than project-less ones.For the Revisit-when of the bootstrap decision in context/performance.md: on prod it is round-trip bound. Fewer statements, or the same ones batched, would pay off; a faster single query would not. Overlapping it with the notifications head (both start-of-boot reads) would remove ~100–150 ms on every page.