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

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixtures/workload/grow.js')
-rw-r--r--test/fixtures/workload/grow.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/fixtures/workload/grow.js b/test/fixtures/workload/grow.js
new file mode 100644
index 00000000000..9ac0139b332
--- /dev/null
+++ b/test/fixtures/workload/grow.js
@@ -0,0 +1,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);