time[sec] | |
---|---|
CPython 3.4.2(6f78fcb) | 20.5 |
CPython 3.4.2(a724607) | 14.2 |
PyPy 2.5 (6f78fcb) | 3.4 |
PyPy 2.5 (a724607) | 3.1 |
CPython (mysqlclient) | 2.8 |
Dataset is "world database (innodb)". It is deployed on here
### KERNEL TUNING ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
time[sec] | |
---|---|
CPython 3.4.2(6f78fcb) | 20.5 |
CPython 3.4.2(a724607) | 14.2 |
PyPy 2.5 (6f78fcb) | 3.4 |
PyPy 2.5 (a724607) | 3.1 |
CPython (mysqlclient) | 2.8 |
Dataset is "world database (innodb)". It is deployed on here
『DevLOVE Advent Calendar 2014 「越境」』の1/14(水)の記事として書かせていただきます、
はじめまして、西村 遊(@gacharion)と申します。
某ソーシャルゲーム系の会社でインフラ担当をしています。
自分自身の振り返りがてら書かせていただこうと思います。
初Advent Caleder参加です。よろしくお願いします。
越境 = 自分(周りの環境含め)の変化 ということで考えてみました。
% mkdir surgemq | |
% cd surgemq | |
% export GOPATH=`pwd` | |
% go get github.com/surge/surgemq | |
% go get github.com/dataence/assert | |
% cd src/github.com/surge/surgemq/benchmark | |
% GOMAXPROCS=2 go test -run=TestServer -vv=2 -logtostderr | |
I1207 16:43:21.135916 63352 server.go:44/ListenAndServe] server/ListenAndServe: server is ready... |
##subscribe側## | |
$ mosquitto_sub -h free.mqtt.shiguredo.jp -u stkay@github -P [パスワード] -t "/stkay@github/" | |
##publish側## | |
$ mosquitto_pub -h free.mqtt.shiguredo.jp -u stkay@github -P [パスワード] -t "/stkay@github/" -m "hoge" |
package main | |
import ( | |
"github.com/flosch/pongo2" | |
"github.com/gin-gonic/gin" | |
"net/http" | |
) | |
type pongoRender struct { | |
cache map[string]*pongo2.Template |
/Google\ Chrome\ Canary --enable-logging --v=1 --vmodule=*/webrtc/*=2,*/libjingle/*=2,*=-2 --enable-logging=stderr | |
// Easier: | |
/Google\ Chrome\ Canary --enable-logging --v=1 --vmodule=*/webrtc/*=2,*=-2 --enable-logging=stderr |