1'use strict'; 2 3const util = require('util'); 4const total = parseInt(process.env.TEST_ALLOCATION) || 100; 5let count = 0; 6let string = ''; 7function runAllocation() { 8 string += util.inspect(process.env); 9 if (count++ < total) { 10 setTimeout(runAllocation, 1); 11 } else { 12 console.log(string.length); 13 } 14} 15 16setTimeout(runAllocation, 1); 17