Giter Club home page Giter Club logo

tpch-kit's Introduction

tpch-kit

TPC-H benchmark kit with some modifications/additions

Official TPC-H benchmark - http://www.tpc.org/tpch

Modifications

The following modifications have been added on top of the official TPC-H kit:

  • modify dbgen to not print trailing delimiter
  • add option for dbgen to output to stdout
  • add compile support for macOS
  • add define for PostgreSQL to support LIMIT N for qgen
  • adjust Makefile defaults

Setup

Linux

Make sure the required development tools are installed:

Ubuntu:

sudo apt-get install git make gcc

CentOS/RHEL:

sudo yum install git make gcc

Then run the following commands to clone the repo and build the tools:

git clone https://github.com/gregrahn/tpch-kit.git
cd tpch-kit/dbgen
make MACHINE=LINUX DATABASE=POSTGRESQL

macOS

Make sure the required development tools are installed:

xcode-select --install

Then run the following commands to clone the repo and build the tools:

git clone https://github.com/gregrahn/tpch-kit.git
cd tpch-kit/dbgen
make MACHINE=MACOS DATABASE=POSTGRESQL

Using the TPC-H tools

Environment

Set these env variables correctly:

export DSS_CONFIG=/.../tpch-kit/dbgen
export DSS_QUERY=$DSS_CONFIG/queries
export DSS_PATH=/path-to-dir-for-output-files

SQL dialect

See Makefile for the valid DATABASE values. Details for each dialect can be found in tpcd.h. Adjust the query templates in tpch-kit/dbgen/queries as need be.

Data generation

Data generation is done via dbgen. See dbgen -h for all options. The environment variable DSS_PATH can be used to set the desired output location.

Query generation

Query generation is done via qgen. See qgen -h for all options.

The following command can be used to generate all 22 queries in numerical order for the 1GB scale factor (-s 1) using the default substitution variables (-d).

qgen -v -c -d -s 1 > tpch-stream.sql

To generate one query per file for SF 3000 (3TB) use:

for ((i=1;i<=22;i++)); do
  ./qgen -v -c -s 3000 ${i} > /tmp/sf3000/tpch-q${i}.sql
done

tpch-kit's People

Contributors

gregrahn avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.