Skip to content

Commit 3b5e1cf

Browse files
committed
chore: sync LARGE_FILE_THRESHOLD in stress-test.js to 5MB
Keep stress test consistent with App.jsx threshold change.
1 parent bcb11f8 commit 3b5e1cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/stress-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ async function runStressTest() {
108108
const { content, sizeBytes } = generateTestLog(testCase.lines);
109109

110110
// Check if this would be considered a "large file"
111-
const LARGE_FILE_THRESHOLD = 500 * 1024; // 500KB
111+
const LARGE_FILE_THRESHOLD = 5 * 1024 * 1024; // 5MB
112112
const isLargeFile = sizeBytes > LARGE_FILE_THRESHOLD;
113-
console.log(`\n Large file threshold: ${isLargeFile ? '⚠️ EXCEEDS' : '✓ Within'} (${(LARGE_FILE_THRESHOLD / 1024).toFixed(0)}KB)`);
113+
console.log(`\n Large file threshold: ${isLargeFile ? '⚠️ EXCEEDS' : '✓ Within'} (${(LARGE_FILE_THRESHOLD / 1024 / 1024).toFixed(0)}MB)`);
114114

115115
// Test ValueExtractor
116116
const { lossResults, gradResults } = testValueExtractor(content);

0 commit comments

Comments
 (0)