]> granicus.if.org Git - postgresql/blob - src/test/bench/WISC-README
Make sure that 'make distclean' cleans out all files that are not meant
[postgresql] / src / test / bench / WISC-README
1 The Postgres Wisconsin Benchmark
2
3 The short form of the directions below:
4
5         ensure postmaster is stopped
6         export PGDATA=/wherever
7         make runtest
8
9 The long form:
10
11 In this directory are the queries and raw data files used to populate the
12 Postgres version of the Wisconsin benchmark.  In order to run the benchmark,
13 you'll initially need to execute the script
14
15 ./create.sh
16
17 which will populate the "bench" database, create the indices, and vacuum the
18 database.  This will take from 10 minutes or so on a Sparc II/DECstation 5000
19 class machine to an hour on a Sun 3.
20
21 Once create.sh completes, you can execute the benchmark by running the
22 script
23
24 ./runwisc.sh
25
26 into an output file.  This output file may be quite large (300K or so)
27 so make sure you have sufficient disk space.  Once the benchmark run has
28 completed, query execution times can be obtained by running the 
29
30 ./perquery
31
32 script on the output file.  It will generate a nicely formatted, numbered
33 set of output with times for each query indicated.  (Note that each query
34 is run twice.)
35
36   !!! WARNING!  DO NOT RUN THESE SCRIPTS IF THE POSTMASTER IS RUNNING !!!