mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 14:50:19 +00:00
Merge pull request #20 from aitoehigie/master
Fleshed out the benchmarks section of the README.md file
This commit is contained in:
@@ -124,14 +124,46 @@ api = responder.API(enable_hsts=True)
|
||||
Boom. ✨🍰✨
|
||||
|
||||
# Performance
|
||||
The objective of these benchmark tests is not testing deployment (like uwsgi vs gunicorn vs uvicorn etc) but instead test the performance of python-response against other popular Python web frameworks.
|
||||
|
||||
python-responder v0.0.1 [stats]
|
||||
Requests/sec: 952.54
|
||||
Transfer/sec: 119.07KB
|
||||
### Methodology
|
||||
The results below were gotten running the performance tests on a Lenovo W530, Intel(R) Core(TM) i7-3740QM CPU @ 2.70GHz, MEM: 32GB, Linux Mint 19. I used Python 3.7.0 with the WRK utility with params:
|
||||
wrk -d20s -t10 -c200 (i.e. 10 threads and 200 connections).
|
||||
|
||||
1. #### Simple "Hello World" benchmark
|
||||
|
||||
python-responder v0.0.1 (Master branch)
|
||||
Requests/sec: 1368.23
|
||||
Transfer/sec: 163.01KB
|
||||
|
||||
|
||||
|
||||
|
||||
Django v2.1.2 (i18n == False)
|
||||
Requests/sec: 544.54
|
||||
Transfer/sec: 103.18KB
|
||||
|
||||
|
||||
|
||||
|
||||
Django v2.1.2 (i18n == True)
|
||||
Requests/sec: 535.12
|
||||
Transfer/sec: 101.38KB
|
||||
|
||||
|
||||
|
||||
Django v2.1.2 (Minimal 1 file Django Application)
|
||||
https://gist.github.com/aitoehigie/ebcc1d3e460e66cd51e5501fa2636798
|
||||
Requests/sec: 701.53
|
||||
Transfer/sec: 99.34KB
|
||||
|
||||
|
||||
|
||||
|
||||
Flask v1.0.2
|
||||
Requests/sec: 896.24
|
||||
Transfer/sec: 144.41KB
|
||||
|
||||
Django v2.1.2 (i18n == False) [stats]
|
||||
Requests/sec: 520.87
|
||||
Transfer/sec: 98.68KB
|
||||
|
||||
# The Basic Idea
|
||||
|
||||
|
||||
Reference in New Issue
Block a user