While working on finding performance bottlenecks on a project at work, I had to create a load testing framework. Now if we were talking apache, there's no dearth of tools, the most notable being http_load and a new tool found by one of my colleagues,
pylotNo such luck, however, for Thrift. So I set out to create such a tool by myself. I took one of
(
Read more... )
Comments 9
Reply
Reply
might look into the multiprocessing module. In perl, there's a Forks module that has the same api as the threads api*, I'm not sure how different the multiprocessing api is in python vs the threading api
*It just forks instead of creating new threads, and does horrible things for shared structures.
Reply
I can't think of a pure python server as being anything but a toy. Surely not meant for high load production environments.
Reply
Reply
Easy test, run top, hit 1 (to show all cores), while running something that spawns as many threads as cores and busy loops in all of them.
Well... it's not unreasonable to have a pure perl server livejournal uses/used a perl based loadbalancing server... and it's single threaded (they have an XS module to accelerate some of the processing, which you would probably really want to use). Based on that, it's probably ok to have a pure python server. :D
(yes, for me python == perl, but with significant whitespace)
Reply
Data89, web data extraction.
Reply
Reply
Leave a comment