Why POE is slower then Python - Twisted ... quite a lot?

howard chen <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
I have 2 simple scripts which connect to NNTP server to fetch 100
articles (no writing to local disk) in order to test the performance
of two frameworks.

I have found Twisted is faster by at least 2 times which make me surprised.

I know it is not fair to compare two frameworks by this simple test.
But I think 2 times is quite much.

Therefore, I upload the code online to see if any experts can find any problem?


Thanks.

http://howachen.googlepages.com/nntp.py
http://howachen.googlepages.com/nntp.pl


>> time python nntp.py news.microsoft.com microsoft.public.access access.mbox

18 sec

>> time perl nntp.pl

37 sec


Any comments?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.