From b9b613647cc16179f96dfd5b64cd4e7ba2471bf0 Mon Sep 17 00:00:00 2001 From: hand-dot Date: Sat, 6 Jun 2026 17:50:34 +0900 Subject: [PATCH] fix(tests): update performance threshold for playground template benchmark --- packages/generator/__tests__/integration-playground.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/generator/__tests__/integration-playground.test.ts b/packages/generator/__tests__/integration-playground.test.ts index 422b37ea..ceac1e30 100644 --- a/packages/generator/__tests__/integration-playground.test.ts +++ b/packages/generator/__tests__/integration-playground.test.ts @@ -34,6 +34,9 @@ const GENERATOR_BENCHMARK_THRESHOLD = parseFloat( const GENERATOR_BENCHMARK_RUN_COUNT = 6; const GENERATOR_BENCHMARK_WARMUP_RUN_COUNT = 1; const ADDRESS_LABEL_BENCHMARK_INPUT_COUNT = 20; +const PLAYGROUND_TEMPLATE_PERFORMANCE_THRESHOLDS: Record = { + 'nenkin-shougai-seishin-shindansho': 5, +}; const generatorPlugins = { text, image, @@ -169,7 +172,7 @@ describe('generate integration test(playground)', () => { const hrend = process.hrtime(hrstart); const execSeconds = hrend[0] + hrend[1] / 1000000000; - checkPerformanceThreshold(key, execSeconds); + checkPerformanceThreshold(key, execSeconds, PLAYGROUND_TEMPLATE_PERFORMANCE_THRESHOLDS[key]); const images = await pdfToImages(pdf); for (let i = 0; i < images.length; i++) {