2 const threadPool
= require('./pool-threadwork')
3 // FINISH IMPORT LIBRARIES
4 const iterations
= Number(process
.env
.NUM_ITERATIONS
)
7 taskType
: process
.env
['TASK_TYPE']
10 async
function run () {
12 for (let i
= 0; i
< iterations
; i
++) {
13 promises
.push(threadPool
.run(data
))
15 await Promise
.all(promises
)