mirror of https://github.com/nodejs/node.git
18 lines
383 B
JavaScript
18 lines
383 B
JavaScript
'use strict';
|
|
|
|
const util = require('util');
|
|
const total = parseInt(process.env.TEST_ALLOCATION) || 100;
|
|
let count = 0;
|
|
let string = '';
|
|
function runAllocation() {
|
|
string += util.inspect(process.env);
|
|
if (count++ < total) {
|
|
setTimeout(runAllocation, 1);
|
|
} else {
|
|
console.log(string.length);
|
|
process.kill(process.pid, "SIGINT");
|
|
}
|
|
}
|
|
|
|
setTimeout(runAllocation, 1);
|