Repository navigation
test: a nightly perf report against the latest release - #3355
Merged
Merged
Conversation
|
mattzcarey
force-pushed
the
slim/nightly-soak
branch
from
November 27, 2026 03:03
53eeb4d to
f61bc9d
Compare
mattzcarey
force-pushed
the
slim/nightly-perf
branch
from
November 27, 2026 03:03
08fe16f to
204d4b0
Compare
Contributor
|
✅ agents import sizes: no significant changes ( |
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
mattzcarey
marked this pull request as ready for review
November 27, 2026 03:11
mattzcarey
force-pushed
the
slim/nightly-soak
branch
2 times, most recently
from
November 27, 2026 05:20
72bf1c1 to
3bcc6e1
Compare
mattzcarey
force-pushed
the
slim/nightly-perf
branch
3 times, most recently
from
November 27, 2026 05:24
199e18e to
f27c9a6
Compare
…lease against this build
…out as broken, acknowledges a resumed stream, keeps task polls out of the counts, and stops its runtimes when interrupted
…un on a fresh runtime, wait for a live stream instead of fixed sleeps
mattzcarey
force-pushed
the
slim/nightly-perf
branch
from
November 27, 2026 05:30
f27c9a6 to
3d0bb7c
Compare
…ures, reset a quarter into the reply, fail a schedule that never ticks and a failed seed, clean scratch on Ctrl-C, PERF_PORT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The nightly workspace gets a perf report (
cd nightly && pnpm run perf [regex]), the perf agent's probe moved into the repository. It bundles the probe Worker twice: on the latest release ofagents,@cloudflare/ai-chatand@cloudflare/think, installed together from npm in a scratch directory, and on this repository's build. It runs every scenario on a localwrangler devof each and prints one markdown table, with each cellrelease / this buildand bold where this build costs more. The scenarios are Think, AIChatAgent and plain Agent turns, queues, submissions, recoveries, connects, fibers, tasks and schedules, at the root and in facets. A facet scenario also gets a(sum)row (leaf,@midand@root), and only that row is bolded. The columns are statements, rows written and read, KV writes, alarm writes,storage.sync()calls, rows left and jobs left. Once the nightly workflow (#3341) runs it, the table also goes to the job summary.It is a report, not a gate: it fails only when a scenario breaks on this build and not on the release. A scenario failing on both is listed without numbers; today that is
recovery-transient-throwon Think and AIChatAgent, which get no reply within 30 s. Each call has a 120 s deadline and each WebSocket open 30 s, so a scenario that cannot finish fails its row. When the local runtime is found down after a scenario, a fresh one starts and the scenario runs once more, and it is broken only if it fails again. Eachwrangler devruns in its own process group, so wrangler and workerd stop together, also on Ctrl-C.Three rows differ from the perf agent's budget. The reconnect in
resume-mid-streamacknowledges the offered stream asuseAgentChatdoes, sothink/resume-mid-streamandchat/resume-mid-streamcount the replay.agent/task-5-stepsleaves its task polls out of the counts. The scenarios that need a stream in flight (resume-mid-stream,queued) wait until one is streaming, not for a fixed time. The probe reads one private field (the reply stream'shasActiveStream, named differently in the release) to know a reply is streaming; no public API says so.Validated: a full run (76 rows plus the facet sums, about ten minutes); the root rows match the budget where they overlap (Think
queued-3104 / 107 rows written).