Skip to content

perf(mail): time cli-core's subscriptions read and the bots filter - #417

Merged
leemour merged 1 commit into
mainfrom
perf/mail-subscriptions
Nov 26, 2026
Merged

leemour merged 1 commit into
mainfrom
perf/mail-subscriptions

Conversation

@leemour

@leemour leemour commented Nov 26, 2026

Copy link
Copy Markdown
Member

Adds performance/mail/subscriptions with bench.mjs, for cli-core#3379 (issue #3371). The run uses 100,000 synthetic emails, 60,000 of them broadcast in 1,600 groups, at a load average of 19 to 22:

  • Warm Subscriptions page: 162 ms for the first 50, 132 ms for the first 500. With a type filter it takes 62 ms. For comparison, mailSenders takes 398 ms.
  • First read: 20.5 s on a writable open, because it types every email first. A read-only open takes 0.9 s and keeps nothing.
  • Bots filter by what they send: 48 to 52 ms warm, 3 ms for messenger bots.
  • No store version needed. One query-plan trap was found and fixed: a unary + on the List-Id expression, which cut a page of 500 from 3.5 s.

🤖 Generated with Claude Code

… what they send

100,000 synthetic emails in 1,600 broadcast groups: a warm page of 50 in
162 ms, 500 in 132 ms, no store version needed; bots filters under 60 ms.
For cli-core#3379.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 5ad8594 into main Nov 26, 2026
1 check passed
@leemour
leemour deleted the perf/mail-subscriptions branch November 26, 2026 00:44
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