Is it possible to preserve the runtime of functions within a parfor loop? Or keep them more consistent?
1 次查看(过去 30 天)
显示 更早的评论
I have a testing script which is used to check the runtime of new code vs old code for some function using a random set of variables.
I would like to perform these runtime tests in parallel, however the act of performing them in parallel affects the runtime. It would be okay if all of the runtimes increase by the same amount, but there doesn't seem to be a clear pattern.
Is there anyway around this?
0 个评论
回答(1 个)
Matt J
2019-4-12
You would probably have to parallelize them across a cluster, rather than on a single multicore machine.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!