Skip to content

Commit

Permalink
Adding the dns caching.Thanks to Emmanuel Rodriguez.
Browse files Browse the repository at this point in the history
  • Loading branch information
shafiev committed Jan 31, 2011
1 parent 7d90299 commit 90a61c9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,3 +1,5 @@
0.09
-adding DNS caching
0.08
-more help
0.07
Expand Down
1 change: 1 addition & 0 deletions MANIFEST
Expand Up @@ -2,6 +2,7 @@ Changes
MANIFEST
Makefile.PL
README
LICENSE
benchmark.pl
lib/AnyEvent/HTTPBenchmark.pm
t/00-load.t
Expand Down
2 changes: 1 addition & 1 deletion README
Expand Up @@ -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

Expand Down
7 changes: 4 additions & 3 deletions benchmark.pl
Expand Up @@ -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;
Expand All @@ -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
Expand Down Expand Up @@ -166,4 +167,4 @@ sub format_seconds {
return sprintf "%.4f", shift;
}

1;
1;
4 changes: 2 additions & 2 deletions lib/AnyEvent/HTTPBenchmark.pm
Expand Up @@ -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
Expand Down

0 comments on commit 90a61c9

Please sign in to comment.