pub fn set_max_threads(threads: usize)
Limits the threads used by backtests and ensembles, in the whole process. Zero, the default, stands for every core the system reports.
The results do not depend on the number of threads.