Created
June 1, 2017 08:02
-
-
Save suzaku/70d17d9c4fa6366613de90629c64a162 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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