Permalink
Browse files

Adding the dns caching.Thanks to Emmanuel Rodriguez.

  • Loading branch information...
1 parent 7d90299 commit 90a61c945d88af8538df3c1d558060f489cfda24 @shafiev committed Jan 31, 2011
Showing with 10 additions and 6 deletions.
  1. +2 −0 Changes
  2. +1 −0 MANIFEST
  3. +1 −1 README
  4. +4 −3 benchmark.pl
  5. +2 −2 lib/AnyEvent/HTTPBenchmark.pm
View
@@ -1,3 +1,5 @@
+0.09
+ -adding DNS caching
0.08
-more help
0.07
View
@@ -2,6 +2,7 @@ Changes
MANIFEST
Makefile.PL
README
+LICENSE
benchmark.pl
lib/AnyEvent/HTTPBenchmark.pm
t/00-load.t
View
2 README
@@ -32,7 +32,7 @@ You can also look for information at:
Search CPAN
http://search.cpan.org/dist/AnyEvent-HTTPBenchmark/
-and also look at git repositary http://github.com/shafiev/AnyEvent-HTTPBenchmark
+and also look to git repositary http://github.com/shafiev/AnyEvent-HTTPBenchmark
LICENSE AND COPYRIGHT
View
@@ -2,8 +2,9 @@
use common::sense; #new features in perl
use Getopt::Long; # to command line parsing
use AnyEvent::HTTP; # use for http requests and etc. methods
-use POSIX;
+use POSIX; # POSIX related stuff
use Data::Dumper; # to debug data
+use AnyEvent::CacheDNS ':register'; # dns requests caching
my $DEBUG = 0; #Debug mode. Default is false (0)
my $verbose = 0; #to view the each connection result
my $timeout = 60;
@@ -14,7 +15,7 @@
my $method = 'GET'; #http method
my $proxy; # proxy server
my $max_recurse = 10; # the default recurse number;
-my $useragent = 'Mozilla/5.0 (compatible; U; AnyEvent::HTTPBenchmark/0.08; +http://github.com/shafiev/AnyEvent-HTTPBenchmark)';
+my $useragent = 'Mozilla/5.0 (compatible; U; AnyEvent::HTTPBenchmark/0.09; +http://github.com/shafiev/AnyEvent-HTTPBenchmark)';
#arrays
my @reqs_time; # the time of requests
@@ -166,4 +167,4 @@ sub format_seconds {
return sprintf "%.4f", shift;
}
-1;
+1;
@@ -9,11 +9,11 @@ AnyEvent::HTTPBenchmark - The tool and library to make http benchmarking good an
=head1 VERSION
-Version 0.08
+Version 0.09
=cut
-our $VERSION = '0.08';
+our $VERSION = '0.09';
=head1 SYNOPSIS

0 comments on commit 90a61c9

Please sign in to comment.