Welcome to mirror list, hosted at ThFree Co, Russian Federation.

grow.js « workload « fixtures « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9ac0139b332b52e71e5327da129375554e3a04d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';

const chunk = parseInt(process.env.TEST_CHUNK) || 1000;

let arr = [];
function runAllocation() {
  const str = JSON.stringify(process.config).slice(0, chunk);
  arr.push(str);
  setImmediate(runAllocation);
}

setImmediate(runAllocation);