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?

回答(1 个)

Matt J
Matt J 2019-4-12
You would probably have to parallelize them across a cluster, rather than on a single multicore machine.
  1 个评论
Matt Crossan
Matt Crossan 2019-4-12
Hi Matt, thanks for your answer. That is certainly a possibility but one that I’d like to avoid if possible! It may come to that if I can’t find another solution.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by