Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.452 kb
import math
import random
import string
charset = string.ascii_letters + string.digits
NUMOPS = 1000000
PERCGET = 0.95
keys = []
for i in range(NUMOPS):
if keys and random.random() < PERCGET:
print 'GET', random.choice(keys)
else:
key = ''.join([random.choice(charset) for i in range(8)])
value = ''.join([random.choice(charset) for i in range(64)])
keys.append(key)
print 'PUT', key, 'value', value
Jump to Line
Something went wrong with that request. Please try again.