Skip to content

Commit

Permalink
add ScenarioResult and ScenarioResultSummary proto messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Apr 14, 2016
1 parent d61c252 commit df14927
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/proto/grpc/testing/control.proto
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,42 @@ message Scenario {
message Scenarios {
repeated Scenario scenarios = 1;
}

// Basic summary that can be computed from ClientStats and ServerStats
// once the scenario has finished.
message ScenarioResultSummary
{
// Total number of operations per second over all clients.
double qps = 1;
// QPS per one server core.
double qps_per_server_core = 2;
// server load based on system_time (0.85 => 85%)
double server_system_time = 3;
// server load based on user_time (0.85 => 85%)
double server_user_time = 4;
// client load based on system_time (0.85 => 85%)
double client_system_time = 5;
// client load based on user_time (0.85 => 85%)
double client_user_time = 6;

// X% latency percentiles (in seconds)
double latency_50 = 7;
double latency_90 = 8;
double latency_95 = 9;
double latency_99 = 10;
double latency_999 = 11;
}

// Results of a single benchmark scenario.
message ScenarioResult {
// Inputs used to run the scenario.
Scenario scenario = 1;
// Histograms from all clients merged into one histogram.
HistogramData latencies = 2;
// Client stats for each client
repeated ClientStats client_stats = 3;
// Server stats for each server
repeated ServerStats server_stats = 4;
// An after-the-fact computed summary
ScenarioResultSummary summary = 5;
}

0 comments on commit df14927

Please sign in to comment.