P
Pablo S
Hi,
Check this paradox -
Run from bash on 2 redhat systems with the same hardware:
#!/usr/bin/perl
$start=time;
my $i=20000000;
while ($i) {
$i--;
}
print "Finished!". (time - $start);
Stock redhat 7.3: 3 seconds (5.6.1)
Stock FC2: 37 seconds (5.8.3)
I first noticed this when I brought over a fast mod_perl database to
FC2 and was like, wth is this. Tests of cats and other basic
functions/loops are basically similar, or even more disparate. I did
a simple string cat loop version of the above that ran 14 times slower
on FC2. These systems are 2.4G P4's and I have 500MHz K6's running
older versions of perl and linux that smoke them.
I am wondering what platform and interpreter would be the fastest to
run a DBI intensive perl application with lots of cat's, loops, etc.
If it's an advanced feature (threading etc), chances are I don't need
it. It seems, from the data, that there is a huge difference from one
setup to the next.
Thank you all!
Check this paradox -
Run from bash on 2 redhat systems with the same hardware:
#!/usr/bin/perl
$start=time;
my $i=20000000;
while ($i) {
$i--;
}
print "Finished!". (time - $start);
Stock redhat 7.3: 3 seconds (5.6.1)
Stock FC2: 37 seconds (5.8.3)
I first noticed this when I brought over a fast mod_perl database to
FC2 and was like, wth is this. Tests of cats and other basic
functions/loops are basically similar, or even more disparate. I did
a simple string cat loop version of the above that ran 14 times slower
on FC2. These systems are 2.4G P4's and I have 500MHz K6's running
older versions of perl and linux that smoke them.
I am wondering what platform and interpreter would be the fastest to
run a DBI intensive perl application with lots of cat's, loops, etc.
If it's an advanced feature (threading etc), chances are I don't need
it. It seems, from the data, that there is a huge difference from one
setup to the next.
Thank you all!