We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentbf26179 commit7db0dc0Copy full SHA for 7db0dc0
contrib/pgbench/pgbench.c
@@ -2896,7 +2896,16 @@ main(int argc, char **argv)
2896
}
2897
disconnect_all(state,nclients);
2898
2899
-/* get end time */
+/*
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
+ */
2909
INSTR_TIME_SET_CURRENT(total_time);
2910
INSTR_TIME_SUBTRACT(total_time,start_time);
2911
printResults(ttype,total_xacts,nclients,threads,nthreads,