Perl performance difference between Linux distributions



--------------------------------------------------------------------------
#!/usr/bin/perl
# This script takes on comparable hardware (stour, mole)
# 50 ms under openSUSE 10.2
# 4200 ms under Fedora 7

use overload q(cmp) => \&cmp;

my %h;
for (my $i=0; $i<5000; $i++) {
$h{$i} = bless [ undef, undef, { }, undef, { } ] => 'main';
}
--------------------------------------------------------------------------

Any idea, how the choice of Linux distribution on identical hardware
can affect the performance of a Perl script so dramatically
(more than an order of magnitude slower under Fedora 7)?

Fedora 7: ssh stour time ./stour-test.pl

real 0m4.308s
user 0m4.286s
sys 0m0.019s

SUSE 10.2: ssh mole time ./stour-test.pl

real 0m0.063s
user 0m0.052s
sys 0m0.012s


(The above script doesn't do anything useful, but is the result of
an attempt to prune away all for this demonstration of this effect
irrelevant parts of a much larger application.)

Any ideas for explanations or independent verifications
of the effect welcome!

Markus

--
Markus Kuhn, Computer Laboratory, University of Cambridge
http://www.cl.cam.ac.uk/~mgk25/ || CB3 0FD, Great Britain
.



Relevant Pages

  • Re: Perl performance difference between Linux distributions
    ... can affect the performance of a Perl script so dramatically ... (more than an order of magnitude slower under Fedora 7)? ... Fedora 7: ssh stour time ./stour-test.pl ... SUSE 10.2: ssh mole time ./stour-test.pl ...
    (comp.lang.perl.misc)
  • Re: Perl performance difference between Linux distributions
    ... # This script takes on comparable hardware ... can affect the performance of a Perl script so dramatically ... Fedora 7: ssh stour time ./stour-test.pl ... SUSE 10.2: ssh mole time ./stour-test.pl ...
    (comp.lang.perl.misc)
  • Re: Perl performance difference between Linux distributions
    ... # This script takes on comparable hardware (stour, mole) ... # 50 ms under openSUSE 10.2 ... # 4200 ms under Fedora 7 ...
    (comp.lang.perl.misc)
  • Re: How to configure sshfs ?
    ... Paul Johnson: ... to script the user-adding routine for the future, ... A lab of computers isn't exactly a default condition. ... whether Fedora or otherwise, ...
    (Fedora)
  • Re: Project Stick In The Mud :-)
    ... then it asks me if I want to continue to run the script. ... What I am saying is that for a long time sysadmin like me, ... Don't protect me from myself when the worst that's going to happen ... I haven't done a whole lot of exploration of Fedora 9 lately, ...
    (Fedora)