Skip to content

Instantly share code, notes, and snippets.

@a13x
Created February 23, 2011 15:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a13x/840574 to your computer and use it in GitHub Desktop.
Save a13x/840574 to your computer and use it in GitHub Desktop.
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__)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment