# Live-run frame and event cost Measures what a live run costs the browser's main thread inside a long, real transcript, from a Chromium trace of the built client: - **`fade-frames.perf.spec.ts`**: the cost of a frame. Traces the open chat idle, then with one sweeping label (`Shimmer`) on screen, then through a short live run. An animation that stays on the compositor costs the main thread nothing; one that repaints shows up as hundreds of frames of `Paint`, and that paint grows with the transcript around the label. - **`replay.perf.spec.ts`**: the cost of each kind of stream event. Takes one assistant message from the chat, streams it back in at the tail of the same chat a frame at a time, and reports main-thread time per window by event kind: a tool call starting, its arguments, its result, a label filling, a reasoning or text delta, the final frame. `idle` windows carry no event and show what is left over from the events before them. Part way through, the replay holds the run still for three seconds and traces that on its own: with no event arriving, whatever the main thread does there it does for the run's animations. - **`speech.perf.spec.ts`**: the cost of the read-aloud control. Every assistant row carries a hidden `