Perl performance difference between Linux distributions
- From: n07W33+mgk25@xxxxxxxxxxxx (Markus Kuhn)
- Date: 15 Aug 2007 19:05:25 GMT
--------------------------------------------------------------------------
#!/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
.
- Follow-Ups:
- Re: Perl performance difference between Linux distributions
- From: Markus Kuhn
- Re: Perl performance difference between Linux distributions
- From: xhoster
- Re: Perl performance difference between Linux distributions
- From: Ilya Zakharevich
- Re: Perl performance difference between Linux distributions
- From: Mumia W.
- Re: Perl performance difference between Linux distributions
- Prev by Date: FAQ 7.18 What's the difference between deep and shallow binding?
- Next by Date: Re: Search MySQL
- Previous by thread: FAQ 7.18 What's the difference between deep and shallow binding?
- Next by thread: Re: Perl performance difference between Linux distributions
- Index(es):
Relevant Pages
|
|