Skip to content

Instantly share code, notes, and snippets.

@okamuuu
Last active October 18, 2017 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save okamuuu/dbdc299fe9a37516de64c9bcdafcbf0d to your computer and use it in GitHub Desktop.
Save okamuuu/dbdc299fe9a37516de64c9bcdafcbf0d to your computer and use it in GitHub Desktop.

isucon6q ベンチツールを実行する手順

ベンチマークツールを同一ホスト上に設置する

.bashrc に以下を設定

sudo mkdir /usr/local/go
echo 'export PATH=~/.local/perl/bin:$PATH' >> ~/.bashrc
echo 'export PATH=~/.local/go/bin:$PATH' >> ~/.bashrc
echo 'export GOROOT=/home/isucon/.local/go' >> ~/.bashrc
echo 'export GOPATH=/home/isucon/gocode' >> ~/.bashrc
echo 'export PATH=$GOROOT/bin:$PATH' >> ~/.bashrc
echo 'export PATH=$GOPATH/bin:$PATH' >> ~/.bashrc
echo 'export $HOME/webapp/script:$PATH' >> ~/.bashrc

edit .gitconfig

[ghq]
    root = ~/gocode/src

isntall

go get github.com/motemen/ghq
ghq get https://github.com/isucon/isucon6-qualify.git

ビルド

cd /home/isucon/gocode/src/github.com/isucon/isucon6-qualify/bench
go get
go build

実行

ulimit -n 4096 # MacOSX などでファイル・ディスクリプタの制限にひっかかる場合
./bench -datadir=data -target=http://localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment