Skip to content

Instantly share code, notes, and snippets.

@suzaku
Created June 1, 2017 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suzaku/70d17d9c4fa6366613de90629c64a162 to your computer and use it in GitHub Desktop.
Save suzaku/70d17d9c4fa6366613de90629c64a162 to your computer and use it in GitHub Desktop.
import random
import gevent
from flask import Flask
app = Flask(__name__)
@app.route('/')
def complex_bound():
x = 1
for i in xrange(500000):
x += i ** 2
gevent.sleep(1 * random.random())
return "OK"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment