Perf win of the day: Claude Code CLI now uses 2x less CPU at p99. Bun's garbage
- Source
- x.com
- Date
Perf win of the day: Claude Code CLI now uses 2x less CPU at p99. Bun's garbage collector was running on a fixed timer, so it would kick in mid-turn and steal CPU right when Claude Code was busiest. Now it waits until the process is idle.

Context
Claude Code's command-line tool now uses half as much CPU at the 99th percentile, the ClaudeDevs account reported, so its heaviest stretches of processor load on a user's machine are about half what they were. The fix changed when memory cleanup runs. Claude Code runs on the Bun runtime, whose garbage collector, the routine that frees memory a program no longer needs, had been firing on a fixed timer. It could start in the middle of a turn and take CPU exactly when Claude Code was busiest. It now waits until the process is idle.
The cleanup still happens; it has moved to the gaps between bursts of work. The figure describes the CLI process on the user's own computer. The post does not claim that the model answers faster or that tasks finish sooner, and its text gives only the 2x ratio, not the CPU levels before and after.
Checking sign-in…
Loading comments…





