New in version 1.1.2.
Measure raw performance.
Upon iteration end or exception raised, prints time taken and resources used to outfp.
Example:
from smisk.util.benchmark import benchmark
for x in benchmark('run 1', 10000):
f = open('/tmp/mos', 'r')
f.close()