Benchmarks and performance enhancements (#209)
authorAlessandro Pio Ardizio <alessandroardizio94@gmail.com>
Mon, 22 Feb 2021 09:38:23 +0000 (10:38 +0100)
committerGitHub <noreply@github.com>
Mon, 22 Feb 2021 09:38:23 +0000 (10:38 +0100)
commitbe0676b3936d75f22ce55b0f71a1fb03d008a01c
tree3dc22cd1e2d2183741310da4d2766d3fc7237211
parent0e2503fc5e7d8b5884682734074e7ec6ef0cd52f
Benchmarks and performance enhancements (#209)

* Benchmarks and performance enhancements

* Removed general Function type

* Remove unknownn work around

* Clean

* Clean up old benchs, exclude benchmark folder from eslint

* Clean up

* Revert "Clean up"

This reverts commit 31271d7f75392f04490a135a86b07e9480375505.

* Revert "Clean up old benchs, exclude benchmark folder from eslint"

This reverts commit 9467624c5713768cd44a545a48454a836d1af1b4.

* Clean up for real

* Clean up and dts for benchmarks

* Run npm lint

* Clean up benchmark eslint warnings and errors

* Exclude no missing require in some bench files

* Exclude no missing require in some bench files

* Remove sonar code smells

* Don't be overjoyed in readme

* Improve interface definition

* Use published poolifier

* Rename

* Ignore lint for benchmarks/versus-external-pools

* Remove eslint-disable from benchmark files

* Enhancement performance is now applied to both cluster and thread pools

* Improve documentation

* Unregister worker listener is no more needed

* Update README.md

* Improve readme

* Add content to readme

* Update benchmarks/README.md

Co-authored-by: Shinigami92 <chrissi92@hotmail.de>
32 files changed:
.eslintignore
benchmarks/README.md [new file with mode: 0644]
benchmarks/external/workerThreadsWorker.js [deleted file]
benchmarks/external/workerpoolWorker.js [deleted file]
benchmarks/internal/bench.js [moved from benchmarks/bench.js with 100% similarity]
benchmarks/internal/choose-worker.js [moved from benchmarks/choose-worker.js with 100% similarity]
benchmarks/internal/cluster/dynamic.js [moved from benchmarks/cluster/dynamic.js with 85% similarity]
benchmarks/internal/cluster/fixed.js [moved from benchmarks/cluster/fixed.js with 75% similarity]
benchmarks/internal/cluster/worker.js [moved from benchmarks/cluster/worker.js with 82% similarity]
benchmarks/internal/thread/dynamic.js [moved from benchmarks/thread/dynamic.js with 91% similarity]
benchmarks/internal/thread/fixed.js [moved from benchmarks/thread/fixed.js with 91% similarity]
benchmarks/internal/thread/worker.js [moved from benchmarks/thread/worker.js with 83% similarity]
benchmarks/myBench.js [deleted file]
benchmarks/versus-external-pools/BENCH-100000.MD [new file with mode: 0644]
benchmarks/versus-external-pools/README.md [new file with mode: 0644]
benchmarks/versus-external-pools/bench.sh [new file with mode: 0755]
benchmarks/versus-external-pools/dynamic-poolifier.js [new file with mode: 0644]
benchmarks/versus-external-pools/dynamic-suchmokuo-node-worker-threads-pool.js [new file with mode: 0644]
benchmarks/versus-external-pools/fixed-poolifier.js [new file with mode: 0644]
benchmarks/versus-external-pools/functions/json-stringify.js [new file with mode: 0644]
benchmarks/versus-external-pools/package-lock.json [new file with mode: 0644]
benchmarks/versus-external-pools/package.json [new file with mode: 0644]
benchmarks/versus-external-pools/piscina.js [new file with mode: 0644]
benchmarks/versus-external-pools/static-suchmokuo-node-worker-threads-pool.js [new file with mode: 0644]
benchmarks/versus-external-pools/workers/piscina/json-stringify.worker.js [new file with mode: 0644]
benchmarks/versus-external-pools/workers/poolifier/json-stringify.worker.js [new file with mode: 0644]
package-lock.json
package.json
src/pools/abstract-pool.ts
src/pools/cluster/fixed.ts
src/pools/thread/fixed.ts
src/utility-types.ts