Hi I'm trying to make a stress test and I've so far not been successful in finding one tool that can do what I'm needed. Unfortunately haven't I found a nice perl module to use as a base of building such a tool myself either. So far I've had a look at LWP::Parallel::UserAgent and HTTP::Async but neither seems to be up to the task. What I want to try to measure and get stats about is:


So far I've tried by making a module that @ISA LWP::Parallel::UserAgent. I'm able to override on_connect and on_return to store stats on each request: time it took, size of the data returned and return code.

However Parallel has no feature where you can say "I want to make n request per s" so it's not possible for me use it (unless rewriting it).

Now, to the question. Does anyone know of a tool, or a perl module I can build around, which can do all these things? ab(2), httperf can do parts of them but not enough.

In reply to Stress testing a webserver by jmo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.