From: Jérôme Benoit Date: Mon, 19 Jun 2023 14:06:19 +0000 (+0200) Subject: docs: refine hyperfine options X-Git-Tag: v2.6.3~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2567b3a31c2c57a4f8736ae4c3d39a5c3ab291cd;p=poolifier.git docs: refine hyperfine options Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/versus-external-pools/hyperfine_benchmarks.sh b/benchmarks/versus-external-pools/hyperfine_benchmarks.sh index 9979c573..cf281a97 100755 --- a/benchmarks/versus-external-pools/hyperfine_benchmarks.sh +++ b/benchmarks/versus-external-pools/hyperfine_benchmarks.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash -hyperfine --export-markdown BENCH-100000.md --min-runs 10 \ - --prepare 'sleep 15' \ +hyperfine --export-markdown BENCH-100000.md --min-runs 20 --prepare 'sleep 10' --warmup 10 \ 'node dynamic-poolifier.js' \ 'node fixed-poolifier.js' \ 'node dynamic-piscina.js' \ diff --git a/src/pools/selection-strategies/README.md b/src/pools/selection-strategies/README.md index 78770b1b..95eee007 100644 --- a/src/pools/selection-strategies/README.md +++ b/src/pools/selection-strategies/README.md @@ -7,7 +7,7 @@ All duration or timestamp are expressed in milliseconds. ### Fair share Its goal is to distribute the load evenly across all workers. To achieve this, the strategy keeps track of the average task execution time for each worker and assigns the next task to the worker with the lowest task end prediction time: `task_end_prediction = max(current_time, task_end_prediction) + average_task_execution_time`. -By default, the strategy uses the average task execution time for each worker but it can be configured to use the task event loop utilization (ELU) active time instead. +By default, the strategy uses the average task execution time for each worker but it can be configured to use the average task event loop utilization (ELU) active time instead. ### Weighted round robin