Skip to content

Instantly share code, notes, and snippets.

@xiefei
xiefei / unwxapkg.py
Created January 3, 2018 02:28 — forked from feix/unwxapkg.py
#!/usr/bin/env python2
# lrdcq
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0
@xiefei
xiefei / descr.md
Created January 3, 2012 08:28 — forked from mranney/descr.md
Redis performance, node 0.4 vs 0.6

Each test performs 20,000 Redis operations. GET/SET payloads are created like this:

small_str = "1234";
small_buf = new Buffer(small_str);
large_str = (new Array(4097).join("-"));
large_buf = new Buffer(large_str);

The tests open 5 connections, waits until they are all ready, and then runs the operations with varying levels of pipelining. 1/5 is pipeline depth of 1, with 5 connections in the pool. 50/5 is a pipeline depth of 50 across all 5, etc.

These numbers are from my OSX laptop, a MacBook Pro with a 2.2Ghz i7 CPU.