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

Commit7db0dc0

Browse files
committed
pgbench: Comment on thread timing hazards.
Reviewed by Fabien COELHO.
1 parentbf26179 commit7db0dc0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎contrib/pgbench/pgbench.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2896,7 +2896,16 @@ main(int argc, char **argv)
28962896
}
28972897
disconnect_all(state,nclients);
28982898

2899-
/* get end time */
2899+
/*
2900+
* XXX We compute results as though every client of every thread started
2901+
* and finished at the same time. That model can diverge noticeably from
2902+
* reality for a short benchmark run involving relatively many threads.
2903+
* The first thread may process notably many transactions before the last
2904+
* thread begins. Improving the model alone would bring limited benefit,
2905+
* because performance during those periods of partial thread count can
2906+
* easily exceed steady state performance. This is one of the many ways
2907+
* short runs convey deceptive performance figures.
2908+
*/
29002909
INSTR_TIME_SET_CURRENT(total_time);
29012910
INSTR_TIME_SUBTRACT(total_time,start_time);
29022911
printResults(ttype,total_xacts,nclients,threads,nthreads,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp