From: David Garamond Date: 2004-01-13T00:59:54+09:00 Subject: Re: faster integer arithmetics & arbitrary precision floating number Emmanuel Touzery wrote: > i have the feeling (unconfirmed) that perl is optimising it away since > the result is unused or the operation repeated or something. i created a > file with 1000000 lines repeating the addition and perl is very slow too > then (and ruby too). do you mean you did: #!/usr/bin/{perl,ruby} 1234567+123456; 1234567+123456; 1234567+123456; 1234567+123456; 1234567+123456; ... ? then have you factored out compilation overhead? I would wild-guess that Perl is slightly slower than Ruby, due to its complex syntaxes? -- dave