in reply to Re^9: "Automated" benchmarking
in thread "Automated" benchmarking
null: 4.34, work: 4.53, delta: 0.19 null: 4.70, work: 4.67, delta: -0.03 null: 5.33, work: 6.38, delta: 1.05 null: 4.83, work: 6.05, delta: 1.22 null: 4.68, work: 5.27, delta: 0.58 null: 6.56, work: 5.12, delta: -1.44 null: 4.42, work: 9.26, delta: 4.85 null: 5.26, work: 4.58, delta: -0.68 null: 6.63, work: 5.86, delta: -0.78 null: 4.34, work: 7.54, delta: 3.20
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: "Automated" benchmarking
by BrowserUk (Patriarch) on Jan 25, 2012 at 15:27 UTC | |
If I decrease the count on the inner loop (and correspondingly the divisor), then I begin to see much wider variations. Including some negative values if I drop the count to one. But with the count set to 100, the results I posted are typical even over quite long time frames. Even when I have a video playing in the background. Could this be a benefit of using a multicore system? (I'm not doing anything trick with the affinity mask or similar.) As an aside, I was exploring the differences between smallprof and NYTprof and found a couple of interesting things. This is the (cut-down) output from the two profilers run against code designed to highlight discrepancies and overheads. Basically, just a bunch of millisecond accurate sleeps of various lengths run in loops:
Have you any thoughts, wisdoms or cluebats as to what gives? If not, I'll probably lift this into a new thread and seek a wider audience. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] [d/l] [select] |
by salva (Canon) on Jan 25, 2012 at 16:32 UTC | |
Could this be a benefit of using a multicore system? Yes, that may be or that I have hyper threading activated on my desktop machine. For the last line eee() for 1 .. 5;, the count is two but ought be one You get that numbers because both Devel::SmallProf and Devel::NYTProf are not counting lines but "sentences" executed It also seems that the meaning of "sentence" changes between perl versions. Under 5.8, I get similar results to the ones you have posted. Under 5.14, I get different ones:
| [reply] [d/l] |
by BrowserUk (Patriarch) on Jan 25, 2012 at 17:04 UTC | |
both Devel::SmallProf and Devel::NYTProf are not counting lines but "sentences" executed Okay. I guess have to take that as read. I'm still intrigued by the extra 3 'sentences' for the sleep in aaa() though? With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
| [reply] |
by salva (Canon) on Jan 25, 2012 at 17:40 UTC | |
by BrowserUk (Patriarch) on Jan 25, 2012 at 20:12 UTC | |
| |