Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(scripts): server metrics time the turn pipeline and opening a large thread #41282

Mergedjuliusmarmingemerged 3 commits intoperf/server-metrics-clients fromrefs/pull/41282/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 26 additions and 1 deletion (loading 1).

x
0 of 2 viewed, 2 left
26 additions and 1 deletionscripts/server-metrics-report.tsModified
View file
@@ -62,6 +62,20 @@
}),
}),
),
+ /** 50 short turns back to back on one thread. */
+ pipeline: Schema.optional(
+ Schema.Struct({
+ /** Send to the agent's API request. */
+ toRequestMs: Spread,
+ /** The reply's last byte to the CLI seeing a finished run: turn end and checkpoint. */
+ turnEndMs: Spread,
+ /** Wall time per turn, the CLI's own start included. */
+ msPerTurn: Schema.Number,
+ loopDelayP99Ms: Schema.Number,
+ loopDelayMaxMs: Schema.Number,
+ gcPauseMs: Schema.Number,
+ }),
+ ),
/** A server on a copy of the developer's real database, its projects backed by clones. */
busy: Schema.optional(
Schema.Struct({
@@ -72,6 +86,16 @@
rest: Window,
shellMs: Spread,
shellKB: Schema.Number,
+ /** The seeded thread with the most messages, opened through its bounded HTTP snapshot. */
+ largeThread: Schema.optional(
+ Schema.Struct({
+ messages: Schema.Number,