1 const FixedThreadPool
= require('./fixed')
4 const pool
= new FixedThreadPool(10)
6 const start
= Date
.now()
7 const iterations
= 100000
9 for (let i
= 0; i
<= iterations
; i
++) {
13 pool
.execute(JSON
.stringify
, o
).then(res
=> {
16 if (resolved
=== iterations
) {
17 console
.log('Time take is ' + (Date
.now() - start
))