Giter VIP home page Giter VIP logo

chbenchmark's Introduction

This is ***not*** an official repository.
The original code can be found on the website: https://db.in.tum.de/research/projects/CHbenCHmark/index.shtml



This implementation of the CH-benCHmark was created for the UNIX platform. It uses unixODBC 
and pthreads.
Additionally, it can handle different SQL dialects. 

To add a new dialect:
    - put a new dialect file in the "dialect" directory
    - implement the interface given in "dialect/Dialect.h"
    - see "dialect/HanaDialect.h" as example
    - modify the "DialectStrategy::getInstance()" function in "dialect/DialectStrategy.cpp"


To build it:
    requirements are: 
    - libodbc (included in unixODBC, version 2.3.2 required!)
    - GNU make (version 3.81 recommended)
    - c++11 compiler (gcc 4.7 recommended)
    
    1. Adjust "Makefile" if needed, for example:
    - CC to appropriate c++11 compiler
    - add -L/path/to/libodbc/directory to LDFLAGS

    2. make


To run it:
    1. Make sure all required libraries can be found, for example:
    - export LD_LIBRARY_PATH=/path/to/libodbc/directory

    2. Make sure you can connect to the system under test using unixODBC's "isql":
    - isql yourDataSourceName yourDatabaseUser yourPassword

    3. Create initial database as CSV files:
        chBenchmark
        -csv
        -wh <WAREHOUSE_COUNT>
        -pa <INITIAL_DB_GEN_PATH>

        example: chBenchmark -csv -wh 50 -pa /path/to/any/directory
        
    4. Run test:
        chBenchmark
        -run
        -dsn <DATA_SOURCE_NAME>
        -usr <DBS_USER>
        -pwd <DBS_PASSWORD>
        -a <ANALYTICAL_CLIENTS>
        -t <TRANSACTIONAL_CLIENTS>
        -wd <WARMUP_DURATION_IN_S>
        -td <TEST_DURATION_IN_S>
        -pa <INITIAL_DB_CREATION_PATH>
        -op <OUTPUT_PATH>

        example: chBenchmark -run -dsn yourDataSourceName -usr yourDatabaseUser -pwd yourPassword 
                 -a 5 -t 10 -wd 60 -td 300 -pa /path/to/any/directory -op /path/to/any/directory

    

chbenchmark's People

Contributors

yestinchen 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.