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

Commitb93d374

Browse files
committed
Fix pgbench's calculation of average latency, when -T is not used.
If the test duration was given in # of transactions (-t or no option),rather as a duration (-T), the latency average was always printed as 0.It has been broken ever since the display of latency average was added,in 9.4.Fabien CoelhoDiscussion: <alpine.DEB.2.20.1607131015370.7486@sto>
1 parent923ad1a commitb93d374

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/pgbench/pgbench.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,9 +2736,9 @@ printResults(int ttype, int64 normal_xacts, int nclients,
27362736
}
27372737
else
27382738
{
2739-
/*only anaverage latency computed fromthe duration is available */
2739+
/*no measurement, showaverage latency computed fromrun time */
27402740
printf("latency average: %.3f ms\n",
2741-
1000.0*duration*nclients /normal_xacts);
2741+
1000.0*time_include*nclients /normal_xacts);
27422742
}
27432743

27442744
if (throttle_delay)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp