aboutsummaryrefslogtreecommitdiff
path: root/test/fixtures/workload/allocation.js
blob: b9a767f0f5b10eb8e9f7101b6aa0afb7260d1ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'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);
  }
}

setTimeout(runAllocation, 1);