~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-security

« back to all changes in this revision

Viewing changes to src/test/bench/WISC-README

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-03-20 12:00:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090320120013-hogj7egc5mjncc5g
Tags: upstream-8.4~0cvs20090328
ImportĀ upstreamĀ versionĀ 8.4~0cvs20090328

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 !!!