Cleanups on bechmarking and strategies code: (#227)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 23 Feb 2021 09:38:00 +0000 (10:38 +0100)
committerGitHub <noreply@github.com>
Tue, 23 Feb 2021 09:38:00 +0000 (10:38 +0100)
commitff5e76e152be8540cba8118bb4e2b9da314dfff5
treef445c9d0061c5f238be252a9fc7a220ba2c17125
parent1927ee6758147bb8a2479b987322564cea20992b
Cleanups on bechmarking and strategies code: (#227)

+ Factor out common code
+ Renaming
+ Add benchmarking on strategies
+ Add microtime to improve benchmark time resolution

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
16 files changed:
benchmarks/internal/bench.js
benchmarks/internal/benchmark-utils.js [new file with mode: 0644]
benchmarks/internal/choose-worker.js
benchmarks/internal/cluster/dynamic.js
benchmarks/internal/cluster/fixed.js
benchmarks/internal/cluster/worker.js
benchmarks/internal/thread/dynamic.js
benchmarks/internal/thread/fixed.js
package-lock.json
package.json
src/pools/abstract-pool.ts
src/pools/cluster/dynamic.ts
src/pools/pool-internal.ts
src/pools/selection-strategies.ts
src/pools/thread/dynamic.ts
tests/pools/selection-strategies.test.js