Tests about a simple python3 fastcgi runner using libfcgi and the Python-C API.
python
c
wsgi
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

benchmarks 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. Benchmarks on gpp with nginx django & sqlite :
  2. ==============================================
  3. Application :
  4. https://git.yannweb.net/maxime-alves/gestion_port_plaisance
  5. Running :
  6. siege -f /tmp/urls -c3 -t120s
  7. With cat /tmp/urls
  8. http://127.0.0.1:81
  9. http://127.0.0.1:81/new_stay/
  10. http://127.0.0.1:81/admin/
  11. http://127.0.0.1:81/new_stay/ POST search_name=test
  12. UWSGI 3 process preswpaned :
  13. ----------------------------
  14. uwsgi_python3 --fastcgi-socket 127.0.0.1:9000 --module gpp.wsgi:application \
  15. --env "DJANGO_SETTINGS_MODULE=gpp.settings" \
  16. --home /tmp/gestion_port_plaisance/venv/ \
  17. --processes=3 --max-requests=5000
  18. ** SIEGE 4.0.4
  19. ** Preparing 3 concurrent users for battle.
  20. The server is now under siege...
  21. Lifting the server siege...
  22. Transactions: 55385 hits
  23. Availability: 100.00 %
  24. Elapsed time: 119.03 secs
  25. Data transferred: 745.96 MB
  26. Response time: 0.01 secs
  27. Transaction rate: 465.30 trans/sec
  28. Throughput: 6.27 MB/sec
  29. Concurrency: 2.97
  30. Successful transactions: 55386
  31. Failed transactions: 0
  32. Longest transaction: 0.15
  33. Shortest transaction: 0.00
  34. PyFCGI 1-3 processes 1 prespawned :
  35. -----------------------------------
  36. spawn-fcgi -d . -n -p 9000 -a 127.0.0.1 -- /usr/local/bin/pyfcgi \
  37. -v -e gpp.wsgi -E application -W3 -m5000
  38. ** SIEGE 4.0.4
  39. ** Preparing 3 concurrent users for battle.
  40. The server is now under siege...
  41. Lifting the server siege...
  42. Transactions: 55515 hits
  43. Availability: 100.00 %
  44. Elapsed time: 119.02 secs
  45. Data transferred: 747.71 MB
  46. Response time: 0.01 secs
  47. Transaction rate: 466.43 trans/sec
  48. Throughput: 6.28 MB/sec
  49. Concurrency: 2.97
  50. Successful transactions: 55516
  51. Failed transactions: 0
  52. Longest transaction: 0.20
  53. Shortest transaction: 0.00
  54. Benchmark on foo_pep333.py using nginx :
  55. ========================================
  56. Same siege configuration.
  57. UWSI 2 processes prespawned :
  58. -----------------------------
  59. uwsgi_python3 --fastcgi-socket 127.0.0.1:9000 -L \
  60. --module foo_pep333:entrypoint --processes=2
  61. ** SIEGE 4.0.4
  62. ** Preparing 3 concurrent users for battle.
  63. The server is now under siege...
  64. Lifting the server siege...
  65. Transactions: 332925 hits
  66. Availability: 100.00 %
  67. Elapsed time: 119.15 secs
  68. Data transferred: 243.37 MB
  69. Response time: 0.00 secs
  70. Transaction rate: 2794.17 trans/sec
  71. Throughput: 2.04 MB/sec
  72. Concurrency: 2.82
  73. Successful transactions: 332925
  74. Failed transactions: 0
  75. Longest transaction: 0.02
  76. Shortest transaction: 0.00
  77. PyFCGI 1-2 processes 1 prespawned:
  78. ----------------------------------
  79. spawn-fcgi -d . -n -p 9000 -a 127.0.0.1 -- src/pyfcgi \
  80. -e foo_pep333 -E entrypoint -W2 -m0
  81. ** SIEGE 4.0.4
  82. ** Preparing 3 concurrent users for battle.
  83. The server is now under siege...
  84. Lifting the server siege...
  85. Transactions: 355446 hits
  86. Availability: 100.00 %
  87. Elapsed time: 119.68 secs
  88. Data transferred: 228.64 MB
  89. Response time: 0.00 secs
  90. Transaction rate: 2969.97 trans/sec
  91. Throughput: 1.91 MB/sec
  92. Concurrency: 2.80
  93. Successful transactions: 355446
  94. Failed transactions: 1
  95. Longest transaction: 1.03
  96. Shortest transaction: 0.00