Perl slowness
Noam Rathaus
noamr at beyondsecurity.com
Tue Sep 8 17:18:25 IDT 2009
I know the time difference doesn't look too bad, but take a bigger code set:
Fast:
real 0m1.682s
user 0m1.584s
sys 0m0.064s
Slow:
real 0m16.730s
user 0m9.345s
sys 0m0.096s
On Tue, Sep 8, 2009 at 5:15 PM, Noam Rathaus <noamr at beyondsecurity.com>wrote:
> Fast:
>
> time perl t.pl
> Done
> real 0m0.431s
> user 0m0.416s
> sys 0m0.016s
>
> Slow
>
> time /tmp/t.pl
> Done
> real 0m1.742s
> user 0m0.864s
> sys 0m0.008s
>
>
>
> On Tue, Sep 8, 2009 at 5:04 PM, Shachar Shemesh <shachar at shemesh.biz>wrote:
>
>> Noam Rathaus wrote:
>>
>> Hi Noam,
>>
>> 1) Both machines have 2GB of memory and are using 200Mb of it..
>>
>> I think the problem is not memory
>>
>> So it's probably not IO either.
>>
>>
>> 2) no weird errors, of any kind in the dmesg or /var/log
>>
>> The newer machine is very new :) I wrote 1 year, it is actually 3 months,
>> I don't think its a hardware malfunction, but I could be wrong
>>
>> Can you run "time" on the processes on both machines, see how much CPU
>> time they take?
>>
>> Shachar
>>
>> --
>> Shachar Shemesh
>> Lingnu Open Source Consulting Ltd.http://www.lingnu.com
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090908/32a60f31/attachment.html>
More information about the Linux-il
mailing list