I hereby claim:
- I am smerritt on github.
- I am torgomatic (https://keybase.io/torgomatic) on keybase.
- I have a public key whose fingerprint is 0884 5E48 A250 564F 5906 892D C21B C799 8554 5617
To claim this, I am signing this object:
#!/bin/bash | |
set -e | |
CONTAINER="ds-test" | |
echo "Test setup" | |
# Set up some data segments (these are just plain objects) | |
TOKEN="`swift stat -v | grep "Auth Token" | cut -d : -f 2`" | |
STORAGE_URL="`swift stat -v | grep "StorageURL" | cut -d : -f 2,3,4,5,6`" |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
import benchmark | |
from swift.container.backend import ContainerBroker | |
class BenchmarkListingOperations(benchmark.Benchmark): | |
def setUp(self): | |
self.broker = ContainerBroker("big-container-db/big.db", | |
account='big-a', container='big-c') |
#!/usr/bin/env python | |
# | |
# Ring Finder 3000: finds rings that break the builder | |
import os | |
import pickle | |
import random | |
import time | |
import traceback | |
from StringIO import StringIO |
#!/usr/bin/env python | |
import xattr | |
XATTR_NAME = 'user.xattr-test' | |
MAX_SIZE = 2**20 + 1 # if it's over 1 MiB, call it infinite | |
def works(fileno, size): | |
try: |
#!/usr/bin/env python | |
import benchmark | |
import cPickle as pickle | |
import hashlib | |
import os | |
import xattr | |
PILE_O_METADATA = pickle.dumps(dict( | |
("attribute%d" % i, hashlib.sha512("thingy %d" % i).hexdigest()) |
~$ python bench.py | |
Benchmark Report | |
================ | |
BenchmarkFlowControl | |
-------------------- | |
name | rank | runs | mean | sd | timesBaseline | |
-------------------|------|-------|-----------|-----------|-------------- |
209-204-163-11:swift (ec-put-path)$ egrep '^inter.*er$' /usr/share/dict/words | |
intercarrier | |
interceder | |
intercepter | |
interchanger | |
interchapter | |
intercommoner | |
intercommuner | |
intercondenser | |
intercooler |
>>> thing = [(1, 2, 3), ('a', 'b', 'c')] | |
>>> zip(*thing) | |
[(1, 'a'), (2, 'b'), (3, 'c')] | |
>>> zip(*zip(*thing)) | |
[(1, 2, 3), ('a', 'b', 'c')] | |
>>> |
function dammit() { | |
sudo `history -p \!\!` | |
} |