Skip to content

Commit 970300f

Browse files
committed
Print test parameters like "foo: 123", and results like "foo = 123".
The way "latency average" was printed was differently if it was calculated from the overall run time or was measured on a per-transaction basis. Also, the per-script weight is a test parameter, rather than a result, so use the "weight: %f" style for that. Backpatch to 9.6, since the inconsistency on "latency average" was introduced there. Fabien Coelho Discussion: <alpine.DEB.2.20.1607131015370.7486@sto>
1 parent 93834a2 commit 970300f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/pgbench/pgbench.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3257,6 +3257,7 @@ printResults(TState *threads, StatsData *total, instr_time total_time,
32573257
tps_exclude = total->cnt / (time_include -
32583258
(INSTR_TIME_GET_DOUBLE(conn_total_time) / nclients));
32593259

3260+
/* Report test parameters. */
32603261
printf("transaction type: %s\n",
32613262
num_scripts == 1 ? sql_script[0].desc : "multiple scripts");
32623263
printf("scaling factor: %d\n", scale);
@@ -3295,7 +3296,7 @@ printResults(TState *threads, StatsData *total, instr_time total_time,
32953296
else
32963297
{
32973298
/* no measurement, show average latency computed from run time */
3298-
printf("latency average: %.3f ms\n",
3299+
printf("latency average = %.3f ms\n",
32993300
1000.0 * time_include * nclients / total->cnt);
33003301
}
33013302

@@ -3323,7 +3324,7 @@ printResults(TState *threads, StatsData *total, instr_time total_time,
33233324
{
33243325
if (num_scripts > 1)
33253326
printf("SQL script %d: %s\n"
3326-
" - weight = %d (targets %.1f%% of total)\n"
3327+
" - weight: %d (targets %.1f%% of total)\n"
33273328
" - " INT64_FORMAT " transactions (%.1f%% of total, tps = %f)\n",
33283329
i + 1, sql_script[i].desc,
33293330
sql_script[i].weight,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy