Upload Kmake

This commit is contained in:
Gorochu
2026-05-26 23:36:42 -07:00
parent ba051b2f74
commit 555ec72358
41615 changed files with 13344630 additions and 1 deletions

22
test/fixtures/workload/bounded.js vendored Normal file
View File

@ -0,0 +1,22 @@
'use strict';
const total = parseInt(process.env.TEST_ALLOCATION) || 5000;
const chunk = parseInt(process.env.TEST_CHUNK) || 1000;
const cleanInterval = parseInt(process.env.TEST_CLEAN_INTERVAL) || 100;
let count = 0;
let arr = [];
function runAllocation() {
count++;
if (count < total) {
if (count % cleanInterval === 0) {
arr.splice(0, arr.length);
setImmediate(runAllocation);
} else {
const str = JSON.stringify(process.config).slice(0, chunk);
arr.push(str);
setImmediate(runAllocation);
}
}
}
setImmediate(runAllocation);