Skip to content

Commit

Permalink
Add --warmup-request-count to CLI help message and docs (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkotila authored and nv-braf committed Nov 14, 2024
1 parent a38ed94 commit 3a142e1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -157,6 +157,12 @@ will also be reported in the results.
Default is `-1` indicating that the average latency is used to determine
stability.

#### `--warmup-request-count=<n>`

Specifies the number of warmup requests to send before benchmarking.

Default is `0`, which means that no warmup requests will be sent.

#### `--request-count=<n>`

Specifies a total number of requests to use for measurement.
Expand Down
8 changes: 8 additions & 0 deletions src/command_line_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ CLParser::Usage(const std::string& msg)
<< std::endl;
std::cerr << "\t--percentile <percentile>" << std::endl;
std::cerr << "\t--request-count <number of requests>" << std::endl;
std::cerr << "\t--warmup-request-count <number of warmup requests>"
<< std::endl;
std::cerr << "\tDEPRECATED OPTIONS" << std::endl;
std::cerr << "\t-t <number of concurrent requests>" << std::endl;
std::cerr << "\t-c <maximum concurrency>" << std::endl;
Expand Down Expand Up @@ -472,6 +474,12 @@ CLParser::Usage(const std::string& msg)
"until stabilization is detected.",
18)
<< std::endl;
std::cerr << FormatMessage(
" --warmup-request-count: Specifies the number of warmup "
"requests to send before benchmarking. The default is 0, "
"which means that no warmup requests will be sent.",
18)
<< std::endl;
std::cerr << FormatMessage(
" --serial-sequences: Enables serial sequence mode "
"where a maximum of one request is outstanding at a time "
Expand Down

0 comments on commit 3a142e1

Please sign in to comment.