in reply to autobox performance:a real-world comparison
What an odd result. I get times around 1.87 seconds for the autobox version and 1.68 seconds for the non-autobox version (Perl 5.10.0 with ithreads). On a second machine, I get 4.82 seconds for autobox and 4.32 seconds for non-autobox (Perl 5.10.1 without ithreads). A 10% penalty seems much more reasonable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: autobox performance:a real-world comparison
by BrowserUk (Patriarch) on Mar 05, 2010 at 05:36 UTC | |
Intriguing indeed. Especially as there is such close correspondance betwen our standard Perl runtimes, and such disparity with the autoboxed version. I'm at a loss ot explain it. (Could you try running with the command line options show below?). Perhaps a few others could run the code--with emphasis on AS & non-AS Perl's on Windows; 32-bit & 64-bit; threaded & non-threaded--though you seem to have ruled that out. Maybe they would shed some light. This is a direct, unedited c&p from my console running first the standard Perl version on 4000, and then the autoboxed version on 400-4000 showing the exponential growth in runtime:
My system is
Full console log including dumping sources to the screen: <Reveal this spoiler or all in this thread>
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 karavelov (Monk) on Mar 05, 2010 at 10:21 UTC | |
And the perl version: The versions of autobox and autobox::Core are the same as yours. May be it is a problem with the windows version of perl. | [reply] [d/l] [select] |
|
Re^2: autobox performance:a real-world comparison
by BrowserUk (Patriarch) on Mar 07, 2010 at 04:40 UTC | |
The cause is memory growth! Despite that they both process identical datsets: I'd be interested to hear if the autobox also grabs a heap of memory on your systems? I also instrumenting them both with NYTProf, but the output is so bewildering (and large) that I'm not able to make any sense of it. If there is anyone out there that wants to try and fix this, I'll make the NYTProf output, plus any other info I can supply, to them. 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] |
|
Re^2: autobox performance:a real-world comparison
by BrowserUk (Patriarch) on Mar 07, 2010 at 07:13 UTC | |
Hm. You weren't by any chance using version 0.7 when you ran your tests? With a few tweaks maybe? Because My hat's off to Scott Walters for such a fast response. Especially on a module he hadn't had occasion to touch for two years. 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] |