Skip to content

Commit

Permalink
Added more infos
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuluPro committed Jan 25, 2019
1 parent 134d2de commit b3b2c46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wrk.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,20 @@ int main(int argc, char **argv) {
long double lat_perc_95 = stats_percentile(statistics.latency, 95.0) / 1000000.0;
long double lat_perc_99 = stats_percentile(statistics.latency, 99.0) / 1000000.0;
printf("{\n");
printf(" \"url\": \"%s\",\n", url);
printf(" \"threads\": %"PRIu64",\n", cfg.threads);
printf(" \"connections\": %"PRIu64",\n", cfg.connections);
printf(" \"duration\": %"PRIu64",\n", cfg.duration);
printf(" \"timeout\": %"PRIu64",\n", cfg.timeout);
if (cfg.script) {
printf(" \"script\": %s,\n", cfg.script);
} else {
printf(" \"script\": null,\n");
}
printf(" \"runtime\": %"PRIu64",\n", runtime_us);
printf(" \"bytes\": %"PRIu64",\n", bytes);
printf(" \"bytes_per_sec\": %Lf,\n", bytes_per_s);
printf(" \"requests_count\": %"PRIu64",\n", statistics.requests->count);
printf(" \"requests_per_sec\": %Lf,\n", req_per_s);
printf(" \"requests_mean\": %Lf,\n", req_mean);
printf(" \"requests_stdev\": %Lf,\n", req_stdev);
Expand Down

0 comments on commit b3b2c46

Please sign in to comment.