Skip to content

Instantly share code, notes, and snippets.

@onigra
Last active December 18, 2015 22:29
Show Gist options
  • Save onigra/5854975 to your computer and use it in GitHub Desktop.
Save onigra/5854975 to your computer and use it in GitHub Desktop.
mysqlslqpメモ
mysqlslap -u root -p --engine=innodb --auto-generate-sql --auto-generate-sql-load-type=read --auto-generate-sql-add-autoincrement  --number-char-cols=3 --number-int-cols=5 --number-of-queries=10000 --concurrency=3 --iterations=10

オプション

--engine=innodb

ストレージエンジン

--auto-generate-sql

SQLの自動生成

--auto-generate-sql-load-type=

アクセスパターン

--number-char-cols=

CHAR型カラムの作成数

--number-int-cols=

int型カラムの作成数

--number-of-queries=

クライアントごとのクエリ数

--concurrency=

クライアント数

--iterations=

テスト回数

read : テーブルのスキャン write : テーブルへの挿入 key : 主キーの読み取り update : 主キーの更新 mixed : 挿入とスキャンを半々ずつ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment