From 2567b3a31c2c57a4f8736ae4c3d39a5c3ab291cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 19 Jun 2023 16:06:19 +0200 Subject: [PATCH] docs: refine hyperfine options MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- benchmarks/versus-external-pools/hyperfine_benchmarks.sh | 3 +-- src/pools/selection-strategies/README.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 -- 2.34.1