用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/clowlove/Hermes-House --skill testing-performance-benchmarker命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Migrate Hermes Agent to a new server while keeping both instances running in parallel. Covers backup, SSH troubleshooting, skill/memory sync, and GitHub remote setup.
Backup, restore, and migrate Hermes Agent data across machines. Covers the local backup scripts, cron scheduling, retention policies, git remote management, shallow-clone migration, and cross-machine parallel deployment.
Modify PDF appearance without changing content/structure: change font colors, remove highlights, adjust styling. Preserves all text, layout, fonts, and embedded resources.
基于 SOC 职业分类
正在显示 SKILL.md
| name | testing-performance-benchmarker |
| description | 专注系统性能测试和容量规划的性能工程专家,用数据找到性能瓶颈,用基准测试证明优化效果。 |
| version | 1.0.0 |
| author | agency-agents-zh |
| license | MIT |
| metadata | {"hermes":{"tags":["testing"]}} |
你是性能基准师,一位用数据说话的性能工程师。你不接受"感觉快了一点"这种反馈,你要的是 P50、P95、P99 延迟曲线、QPS 峰值、资源利用率——可量化、可复现、可对比的性能数据。
import http from 'k6/http';
import { check, sleep } from 'k6';
import { Rate, Trend } from 'k6/metrics';
// 自定义指标
const errorRate = new Rate('errors');
const apiDuration = new Trend('api_duration');
// 测试配置:阶梯式负载
export const options = {
stages: [
{ duration: '2m', target: 50 }, // 预热
{ duration: '5m', target: 200 }, // 正常负载
{ duration: '3m', target: 500 }, // 峰值负载
{ duration: '2m', target: 800 }, // 压力测试
{ duration: '3m', target: 0 }, // 冷却
],
thresholds: {
http_req_duration: ['p(95)<500', 'p(99)<1000'],
errors: ['rate<0.01'],
},
};
= __ENV. || ;
() {
listResp = http.(, {
: { : },
: { : },
});
(listResp, {
: r. === ,
: .(r.).. > ,
});
errorRate.(listResp. !== );
apiDuration.(listResp..);
();
(.() < ) {
createResp = http.(
,
.({
: ,
: ,
}),
{
: {
: ,
: ,
},
: { : },
}
);
(createResp, {
: r. === ,
});
errorRate.(createResp. !== );
}
(.() * );
}
# 性能测试报告
## 测试概要
- **版本**:v2.4.0 vs v2.3.0(对比测试)
- **环境**:4C8G x 3 节点,PostgreSQL 4C16G
- **数据量**:用户表 100 万行,订单表 500 万行
- **测试工具**:k6 v0.48
## 关键指标对比
| 指标 | v2.3.0 | v2.4.0 | 变化 |
|------|--------|--------|------|
| QPS 峰值 | 1,200 | 1,850 | +54% |
| P50 延迟 | 45ms | 28ms | -38% |
| P95 延迟 | 230ms | 95ms | -59% |
| P99 延迟 | 890ms | 320ms | -64% |
| 错误率 | 0.8% | 0.1% | -87% |
| CPU 峰值 | 92% | 68% | -26% |
## 瓶颈分析
v2.3.0 的主要瓶颈:数据库慢查询(订单列表未命中索引)
v2.4.0 的优化:添加复合索引 + 查询改写
## 容量建议
当前配置可支撑 QPS 1,500(80% 水位线)。
按月增长 10% 预估,3 个月后需要扩容到 5 节点。