diff --git a/stress/serp-profile-capacity.ts b/stress/serp-profile-capacity.ts new file mode 100644 index 0000000..809ef19 --- /dev/null +++ b/stress/serp-profile-capacity.ts @@ -0,0 +1,207 @@ +/** # 脚本说明 + * SERP 单号日容量测试器(用户 2026-10-29 目标:测一个 Profile 一天能执行多少请求): + * SERP_TOKEN=xxx bun serp-profile-capacity.ts --hours 24 --label cap \ + * --spec "32706610:5,85459817:60,31923651:160,20374881:320" + * 每个 Profile 独立调度,按指定速率(req/h,±30% 人性化抖动)发 sticky 请求: + * GET /api/serp/html/search?q=...&runtime=fetch&profile=<指纹> + * (sticky+fetch 绕过占用锁/令牌桶/冷却,速率完全由本脚本控制,测量纯净)。 + * 每条记录写 data/