i have looked at Apache Benchmark 2 which has obviosuly a single url benchmark stuff

Well it fall short of dynamic URL

i tried to create http broadcaster using POE

its wokring fine, i can't figure out where i can get time taken for each session

#!/usr/bin/perl use warnings; use HTTP::Request::Common qw(GET POST); use POE qw(Component::Client::HTTP); use YAML; my @url_list; for(1 .. 10) { my $a = rand(900); my $b= rand(900); my $t = int(rand(100000)); my $url = "http://127.0.0.1:3000/search/".$t."/?a=".$a."&b=".$b; push @url_list, $url; } POE::Component::Client::HTTP->spawn(Alias => 'ua'); sub got_response { my ($SESSION, $heap, $request_packet, $response_packet) = @_[SESSION +,HEAP, ARG0, ARG1]; my $http_request = $request_packet->[0]; my $http_response = $response_packet->[0]; } sub _start { my $kernel = $_[KERNEL]; foreach my $url (@url_list) { $kernel->post("ua" => "request", "got_response", GET $url); } } POE::Session->create(package_states => [main => ["_start", "got_respon +se"]]); $poe_kernel->run();

In reply to http benchmark using POE by Kanishka.black0

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.