Skip to content

Instantly share code, notes, and snippets.

View StephenWeber's full-sized avatar

Stephen Weber StephenWeber

View GitHub Profile
@a13x
a13x / bobobench.py
Created February 23, 2011 15:47
Standalone webapp benchmark w/ Bobo framework
#!/usr/bin/env python
import bobo
@bobo.query('/:txt/:num')
def serve(txt, num):
return '\n'.join("%d: %s" % (i, txt) for i in xrange(int(num)))
application = bobo.Application(bobo_resources=__name__)