This repository contains the source code and scripts to build & run benchmarks with PostgreSQL.
After cloning the repo, you must get the submodules.
git submodule update --init --recursive
git lfs fetch && git lfs checkout
./scripts/extract-files.sh
Ajust variables to point to LLVM installation, readline library, and other required files.
source scripts/setenv.sh
./scripts/build-and-install-postgresql.sh [ijit or ""] [-mcpu option]
source ./scripts/pg-setenv.sh [-mcpu option]
./scripts/start-db-server.sh <db base dir name (e.g. tpch)>
Now that the PostgreSQL server is running, the database can be initialized with according to the TPC standard.
This step will build the tools from TPC-H to generate the data for populate the
database (dbgen
). It will also build the tool to generate the queries
(qgen
). After this step the database is ready for performance measurements.
./scripts/build-and-setup-tpch.sh
TODO: check answers
./scripts/run-tpch.sh
With PostgreSQL up and runnnig, the benchmark can be executed. Unfortunatelly, it is an interactive program and provides little room for scripting. Please use the builtin menu after running the following command.
./scripts/run-tpcc.sh