Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
c3ecd445
Unverified
Commit
c3ecd445
authored
Apr 28, 2018
by
Tatsuhiro Tsujikawa
Committed by
GitHub
Apr 28, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1171 from nghttp2/h2load-rate-and-duration
h2load: -r and --duration are mutually exclusive
parents
a5c408c5
c65ca20a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/h2load.cc
src/h2load.cc
+8
-2
No files found.
src/h2load.cc
View file @
c3ecd445
...
@@ -1856,7 +1856,7 @@ Options:
...
@@ -1856,7 +1856,7 @@ Options:
connections per period. When the rate is 0, the program
connections per period. When the rate is 0, the program
will run as it normally does, creating connections at
will run as it normally does, creating connections at
whatever variable rate it wants. The default value for
whatever variable rate it wants. The default value for
this option is 0.
this option is 0.
-r and -D are mutually exclusive.
--rate-period=<DURATION>
--rate-period=<DURATION>
Specifies the time period between creating connections.
Specifies the time period between creating connections.
The period must be a positive number, representing the
The period must be a positive number, representing the
...
@@ -1865,7 +1865,8 @@ Options:
...
@@ -1865,7 +1865,8 @@ Options:
option is 1s.
option is 1s.
-D, --duration=<N>
-D, --duration=<N>
Specifies the main duration for the measurements in case
Specifies the main duration for the measurements in case
of timing-based benchmarking.
of timing-based benchmarking. -D and -r are mutually
exclusive.
--warm-up-time=<DURATION>
--warm-up-time=<DURATION>
Specifies the time period before starting the actual
Specifies the time period before starting the actual
measurements, in case of timing-based benchmarking.
measurements, in case of timing-based benchmarking.
...
@@ -2298,6 +2299,11 @@ int main(int argc, char **argv) {
...
@@ -2298,6 +2299,11 @@ int main(int argc, char **argv) {
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
if
(
config
.
is_timing_based_mode
()
&&
config
.
is_rate_mode
())
{
std
::
cerr
<<
"-r, -D: they are mutually exclusive."
<<
std
::
endl
;
exit
(
EXIT_FAILURE
);
}
if
(
config
.
nreqs
==
0
&&
!
config
.
is_timing_based_mode
())
{
if
(
config
.
nreqs
==
0
&&
!
config
.
is_timing_based_mode
())
{
std
::
cerr
<<
"-n: the number of requests must be strictly greater than 0 "
std
::
cerr
<<
"-n: the number of requests must be strictly greater than 0 "
"if timing-based test is not being run."
"if timing-based test is not being run."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment