good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: What is the best way to compare profiling results before and after a code change?by ELISHEVA (Prior) |
on Apr 11, 2009 at 20:22 UTC ( [id://757047]=note: print w/replies, xml ) | Need Help?? |
Thank you for taking the time to answer my question. You make an excellent point about variance, but shouldn't the null hypothesis be that there is no (statistically significant) change in mean/median/mode? I'm not sure what you mean by "the variance within each run". Your idea of comparing the size of variance before and after variance suggests a side effect that I hadn't thought of: changing the code can change the way the script competes with the operating system and may change the variance before and after. I can see that in certain real time situations where timing really matters, you might want to profile that as well as average performance time. However, in my case "usual" performance time, rather than consistency of performance time, is the primary concern. As for using an ANOVA - that would only apply if the distribution of profiling results is normal. If the distribution is skewed or has overly thick or thin tails, then you would have to use other techniques to analyze the variance. Without knowing the distribution it is very hard to tell how many standard deviations (sqrt of variance) are needed to make the difference between the old and new mean statistically significant (5-7 are needed for a normal distribution). Best, beth
In Section
Seekers of Perl Wisdom
|
|