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?

Reply via email to