pylops.utils.scalability_test#
- pylops.utils.scalability_test(Op, x, workers=None, forward=True)[source]#
Scalability test.
Small auxiliary routine to test the performance of operators using
multiprocessing. This helps identifying the maximum number of workers beyond which no performance gain is observed.- Parameters
- Op
pylops.LinearOperator Operator to test. It must allow for multiprocessing.
- x
numpy.ndarray, optional Input vector.
- workers
list, optional Number of workers to test out. Defaults to [1, 2, 4].
- forward
bool, optional Apply forward (
True) or adjoint (False)
- Op
- Returns