I am employing an embarassingly parallel routine using mclapply() of the parallel package in R in order to simulate independent paths of a stochastic process.
I am surprised that I could not get any speed gain over the non-parallel program, though.
Is there any task which is established to be performed faster in parallel than on a single core which I can use to check whether the system is working as expected?
you could try executing
which suspends the session for 5 seconds. If the parallelisation works, then each of the worker processes should be sleeping at the same time.
Created on 2023-02-03 with reprex v2.0.2