Skip to content

Instantly share code, notes, and snippets.

@yoki123
yoki123 / benchmark_result.txt
Last active November 18, 2015 05:25
torpc benchmark
# lasted at 0632ad4
python benchmark.py -c 1 -n 100000
Throughput: 8986 [#/sec]
Throughput: 8968 [#/sec]
Throughput: 9031 [#/sec]
python benchmark.py -c 2 -n 100000
Throughput: 16386 [#/sec]
Throughput: 15297 [#/sec]
Throughput: 15702 [#/sec]
python benchmark.py -c 3 -n 100000
@yoki123
yoki123 / serializing-compare.py
Last active November 11, 2015 10:50
pypy_serializing_compare
# -*- coding: utf-8 -*-
import time
import pickle
import cPickle
import marshal
import msgpack #(0.4.6)
data = (
@yoki123
yoki123 / pvp_ranking.py
Created February 6, 2015 04:37
A simple pvp ranking with python,redis
# -*- coding: utf-8 -*-
import random
import redis
import time
class PvPRanking(object):
def __init__(self):
self._rs = redis.Redis()
@yoki123
yoki123 / .vimrc
Created April 16, 2013 02:00 — forked from rocarvaj/.vimrc
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier
"
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)