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}` } });