RDBMS Benchmark Get Started
RDBMS Benchmark Get Started
pgbench
pgbench がインストールされてることの確認
$ pgbench --version
pgbench (PostgreSQL) 9.6.8PostgreSQLに対してpgbenchの準備
$ pgbench -U hayashier -h aurorapgtest.c5x5yhkaqvsm.us-west-2.rds.amazonaws.com -i --unlogged-tables test
Password:
NOTICE: table pgbench_history does not exist, skipping
NOTICE: table pgbench_tellers does not exist, skipping
NOTICE: table pgbench_accounts does not exist, skipping
NOTICE: table pgbench_branches does not exist, skipping
creating tables...
100000 of 100000 tuples (100%) done (elapsed 0.03 s, remaining 0.00 s)
vacuum...
set primary keys...
done.pgbench実行
sysbench
インストール
インストールされたか確認
PostgreSQL の場合
環境変数のエクスポート
sysbench 準備
実行
MySQL の場合
環境変数エクスポート
実行
References
sysbench
URL: https://github.com/akopytov/sysbench
PostgreSQL: Documentation: 9.6: pgbench」
URL: https://www.postgresql.org/docs/9.6/static/pgbench.html
Last updated