Permalink
Browse files

try to build as module

  • Loading branch information...
1 parent 239994d commit 4491914e9522ad80d049d4238ead2eeb16222c77 @shafiev committed Jun 12, 2010
Showing with 64 additions and 9 deletions.
  1. +52 −0 README
  2. +12 −9 benchmark.pl
  3. 0 lib/.empty
View
52 README
@@ -1,2 +1,54 @@
+AnyEvent-HTTPBenchmark
+
AnyEvent-HTTPBenchmark is tool to make benchmark good and easy
+INSTALLATION
+
+To install this module, run the following commands:
+
+ perl Makefile.PL
+ make
+ make test
+ make install
+
+SUPPORT AND DOCUMENTATION
+
+After installing, you can find documentation for this module with the
+perldoc command.
+
+ perldoc AnyEvent::HTTPBenchmark
+
+You can also look for information at:
+
+ RT, CPAN's request tracker
+ http://rt.cpan.org/NoAuth/Bugs.html?Dist=AnyEvent-HTTPBenchmark
+
+ AnnoCPAN, Annotated CPAN documentation
+ http://annocpan.org/dist/AnyEvent-HTTPBenchmark
+
+ CPAN Ratings
+ http://cpanratings.perl.org/d/AnyEvent-HTTPBenchmark
+
+ Search CPAN
+ http://search.cpan.org/dist/AnyEvent-HTTPBenchmark/
+
+
+LICENSE AND COPYRIGHT
+
+Copyright (C) 2010 Naim Shafiev
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; version 2 dated June, 1991 or at your option
+any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+A copy of the GNU General Public License is available in the source tree;
+if not, write to the Free Software Foundation, Inc.,
+59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
View
21 benchmark.pl
@@ -38,6 +38,7 @@
return;
}
+warn "asd";
$orig_anyeventdnsa->( $domain,
sub {
$cache{$domain} = [ @_ ];
@@ -72,24 +73,26 @@ sub parse_command_line {
if (not defined @ARGV)
{
print <<HEREDOC;
+ AnyEvent::HTTPBenchmark http://github.com/shafiev/AnyEvent-HTTPBenchmark
- url => \$url,
- number count,
- c => \$concurency,
- "verbose!" => \$verbose,
- "debug" => \$DEBUG,
- "proxy=s" => \$proxy,
- "useragent=s" => \$useragent
+
+ -url url to test,
+ -number number of requests,
+ -c number of parrallel clients
+ -verbose verbose mode
+ -debug debug mode
+ -proxy proxy
+ -useragent useragent string
Example :
./benchmark.pl -url=http://myfavouritesite.com -n=number_of_requests -c=number_of_parrallel clients
- -
+
Another example :
./benchmark.pl --url=http://example.com -n=100 -c=10 -v
HEREDOC
-
+ exit;
}
#get options which ovveride the default values
View
0 lib/.empty
No changes.

0 comments on commit 4491914

Please sign in to comment.