benchmarking with threading module

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matteo Memelli

    benchmarking with threading module

    Hi, I'd like to know if it is possible to use the threading module to
    benchmark a web server.
    I'd like to write a python script which connect to a web server asking
    for a page (like a php page querying a mysql db).
    The script should launch many different queries to the web page at the
    same time.
    The plotting the time VS number of queries I'd like to understand which
    would be the critical number of simultaneous connection to the web
    server.
    Do you think that using the Threading module would be a good idea?
    Any other suggestion?
    Thank you very much

    Matteo Memelli

  • Peter Hansen

    #2
    Re: benchmarking with threading module

    Matteo Memelli wrote:[color=blue]
    > Hi, I'd like to know if it is possible to use the threading module to
    > benchmark a web server.
    > Do you think that using the Threading module would be a good idea?
    > Any other suggestion?[/color]

    This sounds like a good time to use Twisted instead of "threading" .

    -Peter

    Comment

    Working...