Giter Club home page Giter Club logo

tsubakuro-examples's Introduction

tsubakuro-examples - example client programs using tsubakuro for tsurugidb

Requirements

tpc-c

setup

git clone [email protected]:project-tsurugi/tsubakuro-examples.git
pushd tsubakuro-examples/modules/tpccLoader
../../gradlew build
popd

pushd
cd tsubakuro-examples/modules/tpcc
../../gradlew build
popd

table初期データ作成

https://github.com/project-tsurugi/jogasaki-benchmarks/tree/master/tpc-c-datagen/README.md 参照

ベンチマーク実行

ベンチマーク実行は、tsurugidbを起動し、table初期データをloadした後にクライアントプログラムを実行する。

tsurugidb起動

tgctl start

table初期データload

cd tsubakuro-examples
./gradlew runTpccLoader --args="-w ${warehouse} -d ${directory}"

${warehouse}はwarehouse数、${directory}はtable初期データを格納したディレクトリ。なお、${warehouse}はtable初期データ作成時に指定したwarehouse数と一致させる必要はない。大きなwarehouse数を指定して初期データを作成していた場合、${warehouse}で指定したwarehouse数分のデータだけを読み込む。なお、小さなwarehouse数を指定して初期データを作成していた場合は、そのwarehouse数がベンチマーク実行のwarehouse数となる。

クライアントプログラム実行

cd tsubakuro-examples
./gradlew runTpcc --args="${threads} ${duration}"

${threads}はクライアントスレッド数、${duration}はベンチマーク実行時間(単位は秒)。各々のデフォルト値は、${threads}が8、${duration}が30。なお、warehouse数を指定する必要はない(ベンチマーク実行に先立ってtable初期データloadで準備したWAREHOUSE表をSELECT COUNTして得ている)。

tsubakuro-examples's People

Contributors

t-horikawa avatar akirakw avatar kookubo avatar

Watchers

Suguru ARAKAWA avatar hishidama avatar Kambayashi avatar AOE Takashi avatar Ryoji Kurosawa avatar  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.