sudo aptitude update
sudo aptitude -y install gcc g++ openssl-devel git tmux gem lv
sudo aptitude -y install ruby-dev libxml2-dev libxslt-dev
\curl -sSL https://get.rvm.io | bash
source /home/myun2_nw/.rvm/scripts/rvm
rvm install ruby --latest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nginx: 秒間1万~8000リクエスト程度 | |
0.1ms | |
1リクエスト 0.2ms | |
これ以上はサーバ台数を増やすしか・・・(なお並列数にはほぼ依存しない) | |
Nginx + Sinatrao (Socket File IO): | |
800 req ~ 1200 req = 1ms程度 | |
C言語: 秒間1万4千req |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Zaru | |
@residues = [] | |
attr_reader :hole_size, :residues | |
def initialize(hole_size) | |
@hole_size = hole_size | |
end | |
def put(objects) | |
passes = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: | |
gcc intel-avx-test.c -O3 -o a.out | |
gcc intel-avx-test.c -O3 -S | |
./a.out | |
nosse: | |
gcc intel-avx-test.c -O3 -mno-sse -o a.out | |
gcc intel-avx-test.c -O3 -S -mno-sse | |
./a.out | |
std: | |
gcc intel-avx-test.c -O3 -std=c99 -o a.out |
- 三軒茶屋
http://isucon.net/archives/32971265.html
AMI id ami-b34ad3b2
EC2 instance type: m3.xlarge
(EBS最適化なし)
- 圏
- 対象: 入力パラメータ
- 集合: 入力パラメータの集合(固まり, 配列)
- 射: 関数
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[BG] | |
; Use Eterm look-feel Background extension (on/off) | |
BGEnable=off | |
; Use AlphaBlend API (on/off) | |
BGUseAlphaBlendAPI=on | |
; Susie plugin path | |
BGSPIPath=plugin |