src.executors package
Submodules
src.executors.base module
- class src.executors.base.BaseExecutor(**kwargs)[source]
Bases:
ABCA base class for a benchmark executor
- abstract _execute(func, args, **kwargs)[source]
Executor-specific implementation (see inherited classes)
- execute(func, args, **kwargs)[source]
Executes a given function over a list or dict of arguments, and passes arbitrary keyword arguments to the function. The particular meaning of “execution” is defined in
_execute()method, and implemented in inherited executor classes.- Parameters:
- Returns:
results – Results of the execution in the same format as input arguments.
- Return type:
src.executors.dask module
- class src.executors.dask.DaskGatewayExecutor(**kwargs)[source]
Bases:
BaseExecutorDask Gateway executor
Searches for an existing Gateway cluster and uses it to parallelize execution over multiple nodes using a batch system defined in Dask Gateway’s backend (e.g. Slurm).
- class src.executors.dask.DaskLocalExecutor(**kwargs)[source]
Bases:
BaseExecutorDask executor with a local cluster
Creates a LocalCluster and uses it to parallelize execution over local CPU cores (same node as the benchmark)
src.executors.futures module
- class src.executors.futures.FuturesExecutor(**kwargs)[source]
Bases:
BaseExecutorFutures executor
Uses
concurrent.futuresto parallelize execution over CPU cores on the same node where the benchmark is launched.