From a320bc28a6d19d13a11e943b578e4d44ed396f0d Mon Sep 17 00:00:00 2001 From: narzeja Date: Sun, 16 Oct 2016 07:52:10 +0200 Subject: [PATCH] add bottle simple_server using gunicorn --- requirements-dev.txt | 2 ++ tests/performance/bottle/simple_server.py | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/performance/bottle/simple_server.py diff --git a/requirements-dev.txt b/requirements-dev.txt index f9e38568..66e700e3 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,3 +5,5 @@ aiohttp pytest coverage tox +gunicorn +bottle diff --git a/tests/performance/bottle/simple_server.py b/tests/performance/bottle/simple_server.py new file mode 100644 index 00000000..23aab427 --- /dev/null +++ b/tests/performance/bottle/simple_server.py @@ -0,0 +1,10 @@ +from bottle import route, run +import ujson + + +@route('/') +def index(): + return ujson.dumps({'test': True}) + + +run(server='gunicorn', host='0.0.0.0', port=8080)