This file contains hidden or 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
# 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 |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import time | |
import pickle | |
import cPickle | |
import marshal | |
import msgpack #(0.4.6) | |
data = ( |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import random | |
import redis | |
import time | |
class PvPRanking(object): | |
def __init__(self): | |
self._rs = redis.Redis() |
This file contains hidden or 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
" 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) |