Throughput Analyzer 技能:对比任务输入速率和完成速率
EnglishClaude Code 安装步骤
- 从 GitHub 固定提交获取完整的 `plugins/performance/throughput-analyzer/skills/analyzing-system-throughput` 目录。
- 复制到目标项目的 `.claude/skills/`,确认 `.claude/skills/analyzing-system-throughput/SKILL.md`,再从项目根目录启动 Claude Code,输入 `/analyzing-system-throughput`。
中文摘要
用 Claude Code 将完成量、积压量和时延放进同一张容量表,识别内部作业的处理瓶颈。
SKILL.md 中文导读
可复现示例
合成一个 60 秒窗口,进入 1,200 个任务,完成 900 个,起始积压为 0。计算每秒进入与完成量并检查积压。工作步骤
- 分别记录进入队列和处理完成的任务数。核对采样前后积压变化。
- 比较平均吞吐与单任务时延,列出瓶颈候选以及需要进一步取证的指标。
验收方法
输入 20 项/秒,完成 15 项/秒,新增积压 300 项。报告能说明为什么处理能力跟不上输入。
GitHub 原文 · 更新日期
适用环境
准备自己的本地任务队列或合成监控记录,明确采样窗长度和起止计数。
常见问题
平均处理时延小就代表吞吐足够吗?
同时看完成量和队列积压。少数已处理任务很快时,仍可能有越来越多任务在等待。
相关指南
相关推荐
groq-install-auth 技能
jeremylongshore/claude-code-plugins-plus-skills
anima-common-errors 技能
jeremylongshore/claude-code-plugins-plus-skills
apple-notes-hello-world 技能
jeremylongshore/claude-code-plugins-plus-skills
castai-hello-world 技能
jeremylongshore/claude-code-plugins-plus-skills
cohere-local-dev-loop 技能
jeremylongshore/claude-code-plugins-plus-skills
figma-security-basics 技能
jeremylongshore/claude-code-plugins-plus-skills