Determine optimal number of cpus
Arguments
- nsim
Numeric. Number of simulations.
- thresh
Recommended n cpus is what percent of the fastest time?
- plot
Logical. Show the plot?
- msg
Logical. Should messages be printed to console?
- maxn
Optional. Maximum number of cpus. Used for demo purposes