7#include <CLI11/CLI11.hpp>
25 const std::string& default_label,
26 const std::string& default_pid_file,
29 pid_file(fmt::format(
"{}.pid", default_pid_file))
32 app.set_config(
"--config");
39 "Identifier for this client, written to {}",
perf_summary))
40 ->capture_default_str();
46 "Path to which the client PID will be written")
47 ->capture_default_str();
49 cli::add_address_option(
53 "Remote node address to which requests should be sent")
60 "How many transactions the client should send without waiting for "
61 "responses. 0 will send all transactions before blocking for any "
62 "responses, 1 will minimise latency by serially waiting for each "
63 "transaction's response, other values may provide a balance between "
64 "throughput and latency")
65 ->capture_default_str();
ccf::NodeInfoNetwork::NetAddress ParsedAddress
Definition cli_helper.h:18
Definition perf_client.h:12
constexpr auto perf_summary
Definition perf_client.h:13
Definition perf_client.h:16
std::string label
Definition perf_client.h:17
cli::ParsedAddress server_address
Definition perf_client.h:20
std::string pid_file
Definition perf_client.h:18
PerfOptions(const std::string &default_label, const std::string &default_pid_file, CLI::App &app)
Definition perf_client.h:24
size_t max_writes_ahead
Definition perf_client.h:22