Provide a cluster worker pool (#92)
authorShinigami <chrissi92@hotmail.de>
Thu, 11 Feb 2021 13:57:37 +0000 (14:57 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Feb 2021 13:57:37 +0000 (14:57 +0100)
commit325f50bc1777ea44abc9736ce9d780ec0c8f90e2
tree80e044008ff6bc4d92395518a67f8d837f048e37
parentb9cca0059334f11740d3dfbc7bc07cd4432d1af4
Provide a cluster worker pool (#92)

Co-authored-by: aardizio <alessandroardizio94@gmail.com>
Co-authored-by: Jérôme Benoit <jerome.benoit@sap.com>
35 files changed:
benchmarks/bench.js
benchmarks/cluster/dynamic.js [new file with mode: 0644]
benchmarks/cluster/fixed.js [new file with mode: 0644]
benchmarks/cluster/worker.js [new file with mode: 0644]
benchmarks/external/workerThreadsWorker.js [moved from benchmarks/workerThreadsWorker.js with 100% similarity]
benchmarks/external/workerpoolWorker.js [moved from benchmarks/workerpoolWorker.js with 100% similarity]
benchmarks/myBench.js
benchmarks/thread/dynamic.js [new file with mode: 0644]
benchmarks/thread/fixed.js [new file with mode: 0644]
benchmarks/thread/worker.js [moved from benchmarks/threadWorker.js with 83% similarity]
package-lock.json
src/index.ts
src/pools/cluster/dynamic.ts [new file with mode: 0644]
src/pools/cluster/fixed.ts [new file with mode: 0644]
src/pools/thread/dynamic.ts [moved from src/dynamic.ts with 90% similarity]
src/pools/thread/fixed.ts [moved from src/fixed.ts with 95% similarity]
src/utility-types.ts [new file with mode: 0644]
src/worker/cluster-worker.ts [new file with mode: 0644]
src/worker/thread-worker.ts [moved from src/workers.ts with 59% similarity]
src/worker/worker-options.ts [new file with mode: 0644]
tests/pools/cluster/dynamic.test.js [new file with mode: 0644]
tests/pools/cluster/fixed.test.js [new file with mode: 0644]
tests/pools/thread/dynamic.test.js [moved from tests/dynamic.test.js with 85% similarity]
tests/pools/thread/fixed.test.js [moved from tests/fixed.test.js with 76% similarity]
tests/worker/cluster/asyncErrorWorker.js [new file with mode: 0644]
tests/worker/cluster/asyncWorker.js [new file with mode: 0644]
tests/worker/cluster/echoWorker.js [new file with mode: 0644]
tests/worker/cluster/emptyWorker.js [new file with mode: 0644]
tests/worker/cluster/errorWorker.js [new file with mode: 0644]
tests/worker/cluster/testWorker.js [new file with mode: 0644]
tests/worker/thread/asyncWorker.js [moved from tests/workers/asyncWorker.js with 79% similarity]
tests/worker/thread/echoWorker.js [moved from tests/workers/echoWorker.js with 68% similarity]
tests/worker/thread/emptyWorker.js [moved from tests/workers/emptyWorker.js with 65% similarity]
tests/worker/thread/errorWorker.js [moved from tests/workers/errorWorker.js with 70% similarity]
tests/worker/thread/testWorker.js [moved from tests/workers/testWorker.js with 83% similarity]