| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package AnyEvent::HTTPBenchmark; |
|
2
|
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
25795
|
use warnings; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
29
|
|
|
4
|
1
|
|
|
1
|
|
6
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
97
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
AnyEvent::HTTPBenchmark - The tool and library to make http benchmarking good and easy! |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 VERSION |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Version 0.09 |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our $VERSION = '0.09'; |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
The apache benchmark (ab) , siege, jmeter and etc, are sometimes awesome to make http-load testing. But if |
|
22
|
|
|
|
|
|
|
you want make some non-traditional test they are not good decision.This module try to help you in this case. |
|
23
|
|
|
|
|
|
|
Currently implemented just test utility , not a library .Be patient ;) |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
benchmark.pl --url http://example.com -n 100 -c 10 -verbose 1 |
|
27
|
|
|
|
|
|
|
#show each connection |
|
28
|
|
|
|
|
|
|
benchmark.pl --url http://example.com -n 100 -c 10 |
|
29
|
|
|
|
|
|
|
#makes the silent test |
|
30
|
|
|
|
|
|
|
benchmark.pl --url http://example.com -n 100 -c 10 -verbose 2 |
|
31
|
|
|
|
|
|
|
#more details - show the responce |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 EXPORT |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Currently no export functions are implemented. |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 make_request |
|
40
|
|
|
|
|
|
|
not implemented |
|
41
|
|
|
|
|
|
|
=cut |
|
42
|
|
|
|
|
|
|
|
|
43
|
0
|
|
|
0
|
1
|
|
sub make_request { |
|
44
|
|
|
|
|
|
|
#not implemented |
|
45
|
|
|
|
|
|
|
} |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 function2 |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |
|
50
|
|
|
|
|
|
|
|
|
51
|
0
|
|
|
0
|
1
|
|
sub function2 { |
|
52
|
|
|
|
|
|
|
#under construction |
|
53
|
|
|
|
|
|
|
} |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 AUTHOR |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Naim Shafiev, C<< >> |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 BUGS |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Please report any bugs or feature requests to C, or through |
|
62
|
|
|
|
|
|
|
the web interface at L. I will be notified, and then you'll |
|
63
|
|
|
|
|
|
|
automatically be notified of progress on your bug as I make changes. |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 SUPPORT |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
perldoc AnyEvent::HTTPBenchmark |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
You can also look for information at: |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
L |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=over 4 |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
L |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=item * AnnoCPAN: Annotated CPAN documentation |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
L |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=item * CPAN Ratings |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
L |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=item * Search CPAN |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
L |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=back |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
Copyright 2010 Naim Shafiev. |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify |
|
107
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
|
108
|
|
|
|
|
|
|
the Free Software Foundation; version 2 dated June, 1991 or at your option |
|
109
|
|
|
|
|
|
|
any later version. |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
|
112
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
113
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
114
|
|
|
|
|
|
|
GNU General Public License for more details. |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
A copy of the GNU General Public License is available in the source tree; |
|
117
|
|
|
|
|
|
|
if not, write to the Free Software Foundation, Inc., |
|
118
|
|
|
|
|
|
|
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=cut |
|
122
|
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
1; # End of AnyEvent::HTTPBenchmark |