From 2eaa299a43c3367aa23aa5d32e88d04baedfac4d Mon Sep 17 00:00:00 2001 From: bigcode Date: Fri, 30 Oct 2026 00:16:21 +0800 Subject: [PATCH] =?UTF-8?q?stress:=20=E5=8D=95=E5=8F=B7=E6=97=A5=E5=AE=B9?= =?UTF-8?q?=E9=87=8F=E6=B5=8B=E8=AF=95=E5=99=A8(=E5=88=86=E5=B1=82?= =?UTF-8?q?=E9=80=9F=E7=8E=87=20sticky+=E7=8B=B1=E5=90=8E=E6=8E=A2?= =?UTF-8?q?=E6=B5=8B=E6=81=A2=E5=A4=8D=E6=B5=8B=E9=87=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stress/serp-profile-capacity.ts | 207 ++++++++++++++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 stress/serp-profile-capacity.ts 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/