summaryrefslogtreecommitdiff
path: root/contrib/pgbench/README.pgbench
Commit message (Collapse)AuthorAgeFilesLines
* Move most /contrib README files into SGML. Some still need conversionBruce Momjian2007-11-101-284/+0
| | | | or will never be converted.
* Changed new \usleep command into \sleep with an optional time unitJan Wieck2007-07-061-6/+6
| | | | | | argument to specify us, ms or s. As per suggestion by Peter E. Jan
* Added a new scripting meta commandJan Wieck2007-07-061-1/+11
| | | | | | | | | \usleep [milliseconds|:variable] which can be used in -f scripts to insert a thinking time between other commands. Jan
* Add -F option to set fillfactor for tellers, accounts and branches.Tatsuo Ishii2007-04-081-3/+10
| | | | | Patch contributed by Pavan Deolasee. Along with Japanese doc modification by Tatsuo Ishii.
* Enhance pgbench -l option to add timestamp. Patch contributed by GregTatsuo Ishii2007-04-061-5/+24
| | | | | | | | | | | | | | | | | | Smith. Along with Japanese doc updation by Tasuo Ishii. > This patch changes the way pgbench outputs its latency log files so that > every transaction gets a timestamp and notes which transaction type was > executed. It's a one-line change that just dumps some additional > information that was already sitting in that area of code. I also made a > couple of documentation corrections and clarifications on some of the more > confusing features of pgbench. > > It's straightforward to parse log files in this format to analyze what > happened during the test at a higher level than was possible with the > original format. You can find some rough sample code to convert this > latency format into CVS files and then into graphs at > http://www.westnet.com/~gsmith/content/postgresql/pgbench.htm which I'll > be expanding on once I get all my little patches sent in here.
* Various pgbench enhancements. Patch contributed by ITAGAKI Takahiro.Tatsuo Ishii2007-04-061-49/+4
| | | | | | | | | | | | | | | | | | | | | | | | Also tweak README.pgbench/README.pgbench_jis: Remove history after pgbench was added to PostgreSQL contrib module. Those info was not only redundant since it has already been in CVS log, but also incomplete. -------------------------------------------------------------------------- The attached is a patch to optimize contrib/pgbench using new 8.3 features. - Use DROP IF EXISTS to suppress errors for initial loadings. - Use a combination of TRUNCATE and COPY to reduce WAL on creating the accounts table. Also, there are some cosmetic changes. - Change the output of -v option from "starting full vacuum..." to "starting vacuum accounts..." in reflection of the fact. - Shape duplicated error checks into executeStatement(). There is a big performance win in "COPY with no WAL" feature. Thanks for the efforts! --------------------------------------------------------------------------
* pgbench: More fix with handling default scaling factor in the defaultTatsuo Ishii2006-10-211-1/+5
| | | | | | scenarios. With multiple clinets, only the first client got the right scaling factor and this gave a illusion of better performance in case of the scaling factor greater than 1.
* Change "tps" to "scale" to avoid confusionTatsuo Ishii2006-09-131-4/+10
| | | | | Fix bug with handling default scaling factor in the default scenarios
* New features contributed by Tomoaki Sato.Tatsuo Ishii2006-07-261-13/+49
| | | | | | | | | | | - predefined variable "tps" The value of variable tps is taken from the scaling factor specified by -s option. - -D option Variable values can be defined by -D option. - \set command now allows arithmetic calculations.
* Allow multiple -f options.Tatsuo Ishii2005-10-041-1/+4
| | | | | Make pgbench "script driven" to eliminate hard coded transaction scenario. (Tatsuo Ishii)
* Add -f option which enables to read SQL commands from a file.Tatsuo Ishii2005-09-291-11/+58
| | | | Patches Contributed by Tomoaki Sato.
* Patches from Yutaka Tanida. Create primary key indexes after dataTatsuo Ishii2003-11-261-1/+5
| | | | insertion to reduce initialization time.
* Fix uninitialized memory bugTatsuo Ishii2003-06-101-0/+4
| | | | Add support for PGHOST, PGPORT, PGUSER environment variables
* Add note that scaling factor should be >= # of clients.Tom Lane2002-11-271-1/+3
|
* Apply patches from Neil Conway.Tatsuo Ishii2002-07-201-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > Hi Tatsuo, > > I've attached a patch for the version of pgbench in CVS. It includes the > following changes: > > - fix some spelling mistakes, indentation stuff, etc. > > - minor code cleanup -- (void) args instead of (), etc. > > - allocate the state array dynamically, so that it is only as > large as needed. This reduces the memory consumption of pgbench > slightly, and makes a larger MAXCLIENTS setting possible > > - (the only controversial change) add an option "-l" to log > transaction latencies to a file. The "transaction latency" > is the time between when the BEGIN is issued and the transaction > commits. This is written to a file, along with the client # > and the transaction #. The data in the file can then be used > for things like: > > - consistency analysis: is the TPS the same through the > entire run of pgbench, or does it change? > > - more detailed stats: what is the average latency, worse-case > latency, best-case latency? > > - graphs: feed the data to gnuplot, graph latency versus. time > > - etc. > > I was going to store this data in memory and write it to disk > at the end of the pgbench run, but that isn't feasible because > the data can be very large: for example, ~70MB if benchmarking > 128 clients doing 100,000 transactions each. > > Cheers, > > Neil
* Update docs about new -N optionTatsuo Ishii2002-05-201-8/+1
|
* Add -N option which disables updation of branches and tellers tables.Tatsuo Ishii2002-02-241-1/+8
| | | | | So there would be less contention with -N, that might be more realistic test.
* "time" is now a reserved keyword(changed to "mtime").Tatsuo Ishii2001-10-241-2/+5
|
* Add -U, -P, -C options. See README.pgbench for more details.Tatsuo Ishii2001-09-091-1/+18
|
* Update README's install instructions to agree with current reality.Tom Lane2001-02-161-9/+10
|
* Add missing /contrib filesBruce Momjian2000-06-191-0/+149