Thread Subject: How does profiling affect performance?

Subject: How does profiling affect performance?

From: Brian

Date: 20 Nov, 2009 15:05:21

Message: 1 of 2

I have a matlab script that will take about a week to run. If I run the script with the profiler, will it slow the performance down significantly? Also, if it does slow it down, is it a constant (for example, 10%) performance degradation over the entire program, or will it progressively get slower during the script because the profiler is keeping track of more information the longer it's running? Does anyone know?

Thanks!

Subject: How does profiling affect performance?

From: Rune Allnor

Date: 20 Nov, 2009 15:35:15

Message: 2 of 2

On 20 Nov, 16:05, "Brian " <k...@ee.washington.edu> wrote:
> I have a matlab script that will take about a week to run. If I run the script with the profiler, will it slow the performance down significantly?

Yes.

> Also, if it does slow it down, is it a constant (for example, 10%) performance degradation over the entire program, or will it progressively get slower during the script because the profiler is keeping track of more information the longer it's running? Does anyone know?

If you want to use the profiler to find bottlenecks in the
script, run it with a data set smalle enough to be processed
in a matter of minutes or hours.

Rune

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
slow down Brian 20 Nov, 2009 10:09:13
performance Brian 20 Nov, 2009 10:09:12
profiler Brian 20 Nov, 2009 10:09:10
rssFeed for this Thread

Contact us at files@mathworks.com