From a91ac368e2699e1b98e5c1a01ade9f9760262e8a Mon Sep 17 00:00:00 2001 From: thzxx Date: Tue, 11 Aug 2026 09:02:35 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=94=BE=E5=AE=BD=2010=20=E4=B8=87?= =?UTF-8?q?=E8=A1=8C=E6=80=A7=E8=83=BD=E6=8A=A4=E6=A0=8F=EF=BC=88kv=2060s?= =?UTF-8?q?=E2=86=92120s=20/=20opfs=2090s=E2=86=92150s=EF=BC=89=E2=80=94?= =?UTF-8?q?=20CI=20debian=20runner=20=E6=85=A2=202~3=20=E5=80=8D=E4=B8=94?= =?UTF-8?q?=20maxWorkers=3D2=20=E5=B9=B6=E8=A1=8C=E9=87=8D=E5=9E=8B?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=EF=BC=8C84s=20=E4=B8=BA=E5=81=A5=E5=BA=B7?= =?UTF-8?q?=E6=80=A7=E8=83=BD=EF=BC=88=E4=BF=AE=E5=A4=8D=E5=89=8D=E6=82=AC?= =?UTF-8?q?=E5=B4=96=20353s=EF=BC=89=EF=BC=9B=E6=8A=A4=E6=A0=8F=E4=BB=8D?= =?UTF-8?q?=E8=83=BD=E6=8B=A6=E6=88=AA=E6=82=AC=E5=B4=96=E5=9B=9E=E5=BD=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/engine/aria-prod-load.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/engine/aria-prod-load.test.ts b/tests/engine/aria-prod-load.test.ts index 5ff176d..917a564 100644 --- a/tests/engine/aria-prod-load.test.ts +++ b/tests/engine/aria-prod-load.test.ts @@ -313,9 +313,11 @@ describe('AriaEngine — 生产负载验证', () => { await engine.insert('big', rows); } const insertMs = Date.now() - t0; - // 性能护栏:修复前 353s(batch 32 起每批 8~11s 性能悬崖),修复后 <30s + // 性能护栏:修复前 353s(batch 32 起每批 8~11s 性能悬崖), + // 修复后本机 ~30s。CI(debian runner + maxWorkers=2 并行重型测试)慢 2~3 倍, + // 护栏放宽到 120s —— 仍能拦截性能悬崖回归(353s >> 120s),不误报健康慢环境。 console.log(`10万行 kv 插入耗时: ${insertMs}ms`); - expect(insertMs).toBeLessThan(60000); + expect(insertMs).toBeLessThan(120000); expect(await engine.count('big')).toBe(TOTAL); // 全部 10 个 tag 索引查询完整 @@ -360,8 +362,9 @@ describe('AriaEngine — 生产负载验证', () => { await engine.insert('big', rows); } const insertMs = Date.now() - t0; + // 同上:CI 慢环境护栏放宽(本机 ~25s) console.log(`10万行 opfs 插入耗时: ${insertMs}ms`); - expect(insertMs).toBeLessThan(90000); + expect(insertMs).toBeLessThan(150000); expect(await engine.count('big')).toBe(TOTAL); for (let t = 0; t < 10; t++) { const viaIdx = await engine.find('big', { table: 'big', where: { tag: `t${t}` } });