[SUMMARY]: performance between workstations with PERL

From: Huang S. Yann (yann@veritel.com.br)
Date: Wed Oct 11 2000 - 08:46:26 CDT


        People wrote me to use floating point in the script, so I used this:

#!/usr/local/bin/perl

$limite = 500000;
$r=10.23421542827847827487347;
for ($i = 1; $i <= $limite; $i++) {
  $r = $r*$i;
  $r = $r/($i+365);
}
print "Resultado de $0: $r\n";

        The difference between script perl and compiled it was about 15% better
for compiled.

        My first question, you can forget, because I did several tests and the
numbers are the same.

        The second question: for counts with integer the PC based machine run
faster.

        Sun has the advantages for floating point operations and multitasking.

        Thanks for all who answered my e-mail!

        Yann

"Huang S. Yann" wrote:
>
> I'm running Solaris 7 with perl 5.005_03 and I did some tests using a
> single script like this:
>
> #!/usr/local/bin/perl
>
> $limite = 5000000;
> for ($i = 0; $i <= $limite; ++$i) {
> $a = $i;
> }
> print "Contador: $a\n";
>
> I compiled this script using perlcc. Bellow I put my results:
>
> workstation PERL PERL (compiled) Rate
> SparcIIi-270Mhz 19.7s 6.5s 68%
> 2xSparcIIi-296Mhz 14.8s 12.1s 19%
> 2xSparcIIi-400Mhz 10.9s 4.3s 61%
> SparcIIi-296Mhz 15.3s 5.8s 62%
> Athon (1Ghz-linux) 2.9s 1.0s 66%
>
> My questions:
>
> 1) What's the reason to my 2nd machine that has 2 (two) UltraSparc, run
> the script to slow, comparing with the others Sun? At this machine I
> have 4 RAID5 configured.
>
> 2) Why a PC chip by AMD (CISC) can run much faster than SUN machine
> (RISC)?
>
> All the test were made with no heavy process.
>
> Thanks for any tip.
>
> Yann
>
> --
> H. S. Yann
> yann@veritel.com.br
> System & Network Administrator
> VeritelNet
>
> S
> U BEFORE POSTING please READ the FAQ located at
> N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
> . and the list POLICY statement located at
> M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
> A To submit questions/summaries to this list send your email message to:
> N sun-managers@sunmanagers.ececs.uc.edu
> A To unsubscribe from this list please send an email message to:
> G majordomo@sunmanagers.ececs.uc.edu
> E and in the BODY type:
> R unsubscribe sun-managers
> S Or
> . unsubscribe sun-managers original@subscription.address
> L To view an archive of this list please visit:
> I http://www.latech.edu/sunman.html
> S
> T

--
H. S. Yann
yann@veritel.com.br
System & Network Administrator
VeritelNet

S U BEFORE POSTING please READ the FAQ located at N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq . and the list POLICY statement located at M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy A To submit questions/summaries to this list send your email message to: N sun-managers@sunmanagers.ececs.uc.edu A To unsubscribe from this list please send an email message to: G majordomo@sunmanagers.ececs.uc.edu E and in the BODY type: R unsubscribe sun-managers S Or . unsubscribe sun-managers original@subscription.address L To view an archive of this list please visit: I http://www.latech.edu/sunman.html S T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:19 CDT