118 lines
3.6 KiB
Text
118 lines
3.6 KiB
Text
Benchmarks on gpp with nginx django & sqlite :
|
|
==============================================
|
|
|
|
Application :
|
|
https://git.yannweb.net/maxime-alves/gestion_port_plaisance
|
|
|
|
Running :
|
|
|
|
siege -f /tmp/urls -c3 -t120s
|
|
|
|
With cat /tmp/urls
|
|
|
|
http://127.0.0.1:81
|
|
http://127.0.0.1:81/new_stay/
|
|
http://127.0.0.1:81/admin/
|
|
http://127.0.0.1:81/new_stay/ POST search_name=test
|
|
|
|
UWSGI 3 process preswpaned :
|
|
----------------------------
|
|
|
|
uwsgi_python3 --fastcgi-socket 127.0.0.1:9000 --module gpp.wsgi:application \
|
|
--env "DJANGO_SETTINGS_MODULE=gpp.settings" \
|
|
--home /tmp/gestion_port_plaisance/venv/ \
|
|
--processes=3 --max-requests=5000
|
|
|
|
** SIEGE 4.0.4
|
|
** Preparing 3 concurrent users for battle.
|
|
The server is now under siege...
|
|
Lifting the server siege...
|
|
Transactions: 55385 hits
|
|
Availability: 100.00 %
|
|
Elapsed time: 119.03 secs
|
|
Data transferred: 745.96 MB
|
|
Response time: 0.01 secs
|
|
Transaction rate: 465.30 trans/sec
|
|
Throughput: 6.27 MB/sec
|
|
Concurrency: 2.97
|
|
Successful transactions: 55386
|
|
Failed transactions: 0
|
|
Longest transaction: 0.15
|
|
Shortest transaction: 0.00
|
|
|
|
|
|
PyFCGI 1-3 processes 1 prespawned :
|
|
-----------------------------------
|
|
|
|
spawn-fcgi -d . -n -p 9000 -a 127.0.0.1 -- /usr/local/bin/pyfcgi \
|
|
-v -e gpp.wsgi -E application -W3 -m5000
|
|
|
|
** SIEGE 4.0.4
|
|
** Preparing 3 concurrent users for battle.
|
|
The server is now under siege...
|
|
Lifting the server siege...
|
|
Transactions: 55515 hits
|
|
Availability: 100.00 %
|
|
Elapsed time: 119.02 secs
|
|
Data transferred: 747.71 MB
|
|
Response time: 0.01 secs
|
|
Transaction rate: 466.43 trans/sec
|
|
Throughput: 6.28 MB/sec
|
|
Concurrency: 2.97
|
|
Successful transactions: 55516
|
|
Failed transactions: 0
|
|
Longest transaction: 0.20
|
|
Shortest transaction: 0.00
|
|
|
|
|
|
|
|
Benchmark on foo_pep333.py using nginx :
|
|
========================================
|
|
|
|
Same siege configuration.
|
|
|
|
UWSI 2 processes prespawned :
|
|
-----------------------------
|
|
uwsgi_python3 --fastcgi-socket 127.0.0.1:9000 -L \
|
|
--module foo_pep333:entrypoint --processes=2
|
|
|
|
** SIEGE 4.0.4
|
|
** Preparing 3 concurrent users for battle.
|
|
The server is now under siege...
|
|
Lifting the server siege...
|
|
Transactions: 332925 hits
|
|
Availability: 100.00 %
|
|
Elapsed time: 119.15 secs
|
|
Data transferred: 243.37 MB
|
|
Response time: 0.00 secs
|
|
Transaction rate: 2794.17 trans/sec
|
|
Throughput: 2.04 MB/sec
|
|
Concurrency: 2.82
|
|
Successful transactions: 332925
|
|
Failed transactions: 0
|
|
Longest transaction: 0.02
|
|
Shortest transaction: 0.00
|
|
|
|
|
|
PyFCGI 1-2 processes 1 prespawned:
|
|
----------------------------------
|
|
spawn-fcgi -d . -n -p 9000 -a 127.0.0.1 -- src/pyfcgi \
|
|
-e foo_pep333 -E entrypoint -W2 -m0
|
|
|
|
** SIEGE 4.0.4
|
|
** Preparing 3 concurrent users for battle.
|
|
The server is now under siege...
|
|
Lifting the server siege...
|
|
Transactions: 355446 hits
|
|
Availability: 100.00 %
|
|
Elapsed time: 119.68 secs
|
|
Data transferred: 228.64 MB
|
|
Response time: 0.00 secs
|
|
Transaction rate: 2969.97 trans/sec
|
|
Throughput: 1.91 MB/sec
|
|
Concurrency: 2.80
|
|
Successful transactions: 355446
|
|
Failed transactions: 1
|
|
Longest transaction: 1.03
|
|
Shortest transaction: 0.00
|
|
|