Browse Source

Add 120s siege benchmarks

Yann Weber 4 years ago
parent
commit
7c81ca411d
1 changed files with 118 additions and 0 deletions
  1. 118
    0
      benchmarks

+ 118
- 0
benchmarks View File

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

Loading…
Cancel
Save