Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idlesign/narrow
Naive throughput measurements for Python web apps and servers.
https://github.com/idlesign/narrow
benchmark-framework benchmarks http nginx python python3 ssl uwsgi
Last synced: 20 days ago
JSON representation
Naive throughput measurements for Python web apps and servers.
- Host: GitHub
- URL: https://github.com/idlesign/narrow
- Owner: idlesign
- License: bsd-3-clause
- Created: 2018-06-21T12:42:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-23T13:36:32.000Z (over 6 years ago)
- Last Synced: 2024-10-04T20:23:21.386Z (about 1 month ago)
- Topics: benchmark-framework, benchmarks, http, nginx, python, python3, ssl, uwsgi
- Language: Python
- Homepage: https://idlesign.github.io/narrow/
- Size: 827 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING
- License: LICENSE
Awesome Lists containing this project
README
narrow
======
https://github.com/idlesign/narrow|release| |lic|
.. |release| image:: https://img.shields.io/pypi/v/narrow.svg
:target: https://pypi.python.org/pypi/narrow.. |lic| image:: https://img.shields.io/pypi/l/narrow.svg
:target: https://pypi.python.org/pypi/narrow**Work in progress. Stay tuned.**
Description
-----------*Naive throughput measurements for Python web apps and servers*
This tries to measure a throughput for various Python web apps and servers
Benchmark report sample: https://idlesign.github.io/narrow/
Stands:
* nginx_ssl_static: Nginx static response using SSL
* nginx_ssl_tcp_uwsgi: Nginx -> UWSGI -> TCP socket -> uwsgi -> app response. Using SSL
* nginx_ssl_unix_uwsgi: Nginx -> UWSGI -> Unix socket -> uwsgi -> app response. Using SSL
* nginx_static: Nginx static response
* nginx_tcp_uwsgi: Nginx -> UWSGI -> TCP socket -> uwsgi -> app response
* nginx_unix_uwsgi: Nginx -> UWSGI -> Unix socket -> uwsgi -> app response
* uwsgi: uwsgi HTTP router -> app response
* uwsgi_ssl: uwsgi HTTP router -> app response. Using SSLApps/frameworks:
* bottle: Bottle framework application
* cherrypy: CherryPy framework application
* django: Django framework application
* flask: Flask framework application
* py: Pure wsgi application -- defaultBenchers:
* h2load: h2load from nghttp2
* weighttp: weighttp (no SSL support)Requirements
------------Basics:
* Python 3.4+
* `nginx `_
* `uwsgi `_Benchmarking tools (any):
* `h2load `_
* `weighttp `_Running
-------Run benchmarks, dump and plot the results:
.. code-block:: bash
$ narrow --help
$ narrow list_stands
$ narrow list_apps
$ narrow list_benchers$ narrow runlocal --plot
$ narrow --verbose runlocal --log --stand uwsgi --app flask --bencher weighttp
$ narrow stats_plot