@@ -74,7 +74,7 @@ Options:
74
74
-d, --dump Dump benchmark data in tab separated format, for
75
75
graphing.
76
76
-e, --delay=FLOAT Delay between blocks or pings. None by default.
77
- -H, --host=HOST Host to connect to. 'localhost' by default.
77
+ -H, --host=HOST Host to connect to. 'localhost' by default.
78
78
-P, --port=PORT Port to connect to. Mandatory.
79
79
80
80
Benchmarks:
@@ -84,7 +84,7 @@ Benchmarks:
84
84
--fastreadbench Benchmark reading a single repeated character.
85
85
--fastwritebench Benchmark writing a single repeated character.
86
86
--pingbench Benchmark ping time.
87
- --randechobench Benchmark sending random data, and receiving it
87
+ --randechobench Benchmark sending random data, and receiving it
88
88
back
89
89
--randreadbench Benchmark reading random, incompressible data.
90
90
--randwritebench Benchmark writing random, incompressible data.
@@ -100,7 +100,7 @@ Example:
100
100
101
101
Connect to port 42000 and run all the benchmarks:
102
102
$0 --port 42000 -a
103
-
103
+
104
104
HELP
105
105
exit (0);
106
106
}
@@ -111,7 +111,7 @@ if (!$opt_port) {
111
111
}
112
112
113
113
114
- my $socket = IO::Socket::INET-> new(PeerAddr => $opt_host , PeerPort => $opt_port , Proto => ' tcp' );
114
+ my $socket = IO::Socket::INET-> new(PeerAddr => $opt_host , PeerPort => $opt_port , Proto => ' tcp' );
115
115
if (!$socket ) {
116
116
die " Can't connect to $opt_host :$opt_port : $! " ;
117
117
}
@@ -142,7 +142,7 @@ if ( $cmd_pingbench ) {
142
142
for (my $i =0;$i <$opt_count ;$i ++) {
143
143
send_cmd(" echo $i " );
144
144
read_until_prompt();
145
-
145
+
146
146
my $elapsed = tv_interval($t0 , [gettimeofday()]);
147
147
if ( $opt_dump ) {
148
148
print " $elapsed \t $i \n " ;
@@ -413,4 +413,3 @@ sub show_last {
413
413
undef $self -> {prev_time };
414
414
$self -> set( $self -> {last_str } ) if ( $self -> {last_str } );
415
415
}
416
-
0 commit comments