Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2a7f4f7

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 calculatedfrom 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, souse the "weight: %f" style for that.Backpatch to 9.6, since the inconsistency on "latency average" wasintroduced there.Fabien CoelhoDiscussion: <alpine.DEB.2.20.1607131015370.7486@sto>
1 parent65c6556 commit2a7f4f7

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
@@ -3260,6 +3260,7 @@ printResults(TState *threads, StatsData *total, instr_time total_time,
32603260
tps_exclude=total->cnt / (time_include-
32613261
(INSTR_TIME_GET_DOUBLE(conn_total_time) /nclients));
32623262

3263+
/* Report test parameters. */
32633264
printf("transaction type: %s\n",
32643265
num_scripts==1 ?sql_script[0].desc :"multiple scripts");
32653266
printf("scaling factor: %d\n",scale);
@@ -3298,7 +3299,7 @@ printResults(TState *threads, StatsData *total, instr_time total_time,
32983299
else
32993300
{
33003301
/* no measurement, show average latency computed from run time */
3301-
printf("latency average: %.3f ms\n",
3302+
printf("latency average = %.3f ms\n",
33023303
1000.0*time_include*nclients /total->cnt);
33033304
}
33043305

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp