Commit | Line | Data |
---|---|---|
8fca9288 JB |
1 | // IMPORT LIBRARIES |
2 | import { ThreadPool } from 'threadwork' | |
3 | // FINISH IMPORT LIBRARIES | |
4 | // IMPORT FUNCTION TO BENCH | |
bea2d6e3 | 5 | import functionToBench from './functions/function-to-bench.js' |
8fca9288 JB |
6 | // FINISH IMPORT FUNCTION TO BENCH |
7 | const size = parseInt(process.env.POOL_SIZE) | |
8 | ||
9 | export default new ThreadPool({ task: functionToBench, size }) |