Improve benchmarks: add IO intensive task workload, add task size option, integrate...
[poolifier.git] / benchmarks / versus-external-pools / pool-threadwork.js
CommitLineData
73cda448
JB
1// IMPORT LIBRARIES
2const { ThreadPool } = require('threadwork')
3// FINISH IMPORT LIBRARIES
4// IMPORT FUNCTION TO BENCH
5const functionToBench = require('./functions/function-to-bench')
6// FINISH IMPORT FUNCTION TO BENCH
7const size = Number(process.env.POOL_SIZE)
8
7a6a0a96 9module.exports = new ThreadPool({ task: functionToBench, size })