public
Created

  • Download Gist
async-rails-perf.log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346
# MBP pro, production mode, thin server
# - each request spawns an internal http request back to thin
# - final destination does a 1s sleep inside of mysql
#
# concurrency time
# 75 73.426
# 60 66.411
# 50 65.502
# 40 78.105
# 30 106.624
#
# looks like a single thin on my MBP peaks ~50 req/s (with internal hit, so 100 req/s total)
#
 
#
# development:
# adapter: em_mysqlplus
# database: widgets
# pool: 200
# timeout: 5000
#
# 3000 requests, 75 req/s, should ~40s, real: 73.426s
#
 
(M=a393b8) igrigorik /git/async-rails3> ab -c 75 -n 3000 http://127.0.0.1:3000/widgets/http
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
 
Benchmarking 127.0.0.1 (be patient)
Completed 300 requests
Completed 600 requests
Completed 900 requests
Completed 1200 requests
Completed 1500 requests
Completed 1800 requests
Completed 2100 requests
Completed 2400 requests
Completed 2700 requests
Completed 3000 requests
Finished 3000 requests
 
 
Server Software: thin
Server Hostname: 127.0.0.1
Server Port: 3000
 
Document Path: /widgets/http
Document Length: 6 bytes
 
Concurrency Level: 75
Time taken for tests: 73.426 seconds
Complete requests: 3000
Failed requests: 0
Write errors: 0
Total transferred: 1227000 bytes
HTML transferred: 18000 bytes
Requests per second: 40.86 [#/sec] (mean)
Time per request: 1835.638 [ms] (mean)
Time per request: 24.475 [ms] (mean, across all concurrent requests)
Transfer rate: 16.32 [Kbytes/sec] received
 
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.7 0 7
Processing: 1159 1820 209.5 1882 2338
Waiting: 1158 1820 209.5 1882 2334
Total: 1159 1820 209.5 1882 2340
 
Percentage of the requests served within a certain time (ms)
50% 1882
66% 1921
75% 1953
80% 1968
90% 1999
95% 2056
98% 2149
99% 2313
100% 2340 (longest request)
 
 
#
# development:
# adapter: em_mysqlplus
# database: widgets
# pool: 200
# timeout: 5000
#
# 3000 requests, 60 req/s, should ~50s, real: 66.411s
#
 
(M=a393b8) igrigorik /git/async-rails3> ab -c 60 -n 3000 http://127.0.0.1:3000/widgets/http
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
 
Benchmarking 127.0.0.1 (be patient)
Completed 300 requests
Completed 600 requests
Completed 900 requests
Completed 1200 requests
Completed 1500 requests
Completed 1800 requests
Completed 2100 requests
Completed 2400 requests
Completed 2700 requests
Completed 3000 requests
Finished 3000 requests
 
 
Server Software: thin
Server Hostname: 127.0.0.1
Server Port: 3000
 
Document Path: /widgets/http
Document Length: 6 bytes
 
Concurrency Level: 60
Time taken for tests: 66.411 seconds
Complete requests: 3000
Failed requests: 0
Write errors: 0
Total transferred: 1227000 bytes
HTML transferred: 18000 bytes
Requests per second: 45.17 [#/sec] (mean)
Time per request: 1328.221 [ms] (mean)
Time per request: 22.137 [ms] (mean, across all concurrent requests)
Transfer rate: 18.04 [Kbytes/sec] received
 
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.3 0 5
Processing: 1055 1317 194.1 1261 2285
Waiting: 1055 1317 194.1 1261 2284
Total: 1055 1318 194.1 1261 2287
 
Percentage of the requests served within a certain time (ms)
50% 1261
66% 1306
75% 1365
80% 1421
90% 1606
95% 1726
98% 1880
99% 1994
100% 2287 (longest request)
 
 
 
#
# development:
# adapter: em_mysqlplus
# database: widgets
# pool: 200
# timeout: 5000
#
# 3000 requests, 50 req/s, should ~60s, real: 65.502
#
 
(M=a393b8) igrigorik /git/async-rails3> ab -c 50 -n 3000 http://127.0.0.1:3000/widgets/http
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
 
Benchmarking 127.0.0.1 (be patient)
Completed 300 requests
Completed 600 requests
Completed 900 requests
Completed 1200 requests
Completed 1500 requests
Completed 1800 requests
Completed 2100 requests
Completed 2400 requests
Completed 2700 requests
Completed 3000 requests
Finished 3000 requests
 
 
Server Software: thin
Server Hostname: 127.0.0.1
Server Port: 3000
 
Document Path: /widgets/http
Document Length: 6 bytes
 
Concurrency Level: 50
Time taken for tests: 65.502 seconds
Complete requests: 3000
Failed requests: 0
Write errors: 0
Total transferred: 1227000 bytes
HTML transferred: 18000 bytes
Requests per second: 45.80 [#/sec] (mean)
Time per request: 1091.699 [ms] (mean)
Time per request: 21.834 [ms] (mean, across all concurrent requests)
Transfer rate: 18.29 [Kbytes/sec] received
 
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.6 0 11
Processing: 1007 1081 129.3 1045 1984
Waiting: 1006 1081 128.7 1045 1981
Total: 1007 1082 129.6 1046 1992
 
Percentage of the requests served within a certain time (ms)
50% 1046
66% 1114
75% 1126
80% 1131
90% 1140
95% 1155
98% 1214
99% 1984
100% 1992 (longest request)
 
#
# development:
# adapter: em_mysqlplus
# database: widgets
# pool: 200
# timeout: 5000
#
# 3000 requests, 40 req/s, should ~75s, real: 78.105
#
 
(M=a393b8) igrigorik /git/async-rails3> ab -c 40 -n 3000 http://127.0.0.1:3000/widgets/http
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
 
Benchmarking 127.0.0.1 (be patient)
Completed 300 requests
Completed 600 requests
Completed 900 requests
Completed 1200 requests
Completed 1500 requests
Completed 1800 requests
Completed 2100 requests
Completed 2400 requests
Completed 2700 requests
Completed 3000 requests
Finished 3000 requests
 
 
Server Software: thin
Server Hostname: 127.0.0.1
Server Port: 3000
 
Document Path: /widgets/http
Document Length: 6 bytes
 
Concurrency Level: 40
Time taken for tests: 78.105 seconds
Complete requests: 3000
Failed requests: 0
Write errors: 0
Total transferred: 1227000 bytes
HTML transferred: 18000 bytes
Requests per second: 38.41 [#/sec] (mean)
Time per request: 1041.399 [ms] (mean)
Time per request: 26.035 [ms] (mean, across all concurrent requests)
Transfer rate: 15.34 [Kbytes/sec] received
 
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 2
Processing: 1006 1035 32.0 1025 1180
Waiting: 1006 1034 31.7 1025 1178
Total: 1006 1035 32.1 1026 1181
 
Percentage of the requests served within a certain time (ms)
50% 1026
66% 1035
75% 1042
80% 1047
90% 1074
95% 1119
98% 1144
99% 1152
100% 1181 (longest request)
 
#
# development:
# adapter: em_mysqlplus
# database: widgets
# pool: 200
# timeout: 5000
#
# 3000 requests, 30 req/s, should ~100s, real: 106.624s
#
 
(M=a393b8) igrigorik /git/async-rails3> ab -c 30 -n 3000 http://127.0.0.1:3000/widgets/http
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
 
Benchmarking 127.0.0.1 (be patient)
Completed 300 requests
Completed 600 requests
Completed 900 requests
Completed 1200 requests
Completed 1500 requests
Completed 1800 requests
Completed 2100 requests
Completed 2400 requests
Completed 2700 requests
Completed 3000 requests
Finished 3000 requests
 
 
Server Software: thin
Server Hostname: 127.0.0.1
Server Port: 3000
 
Document Path: /widgets/http
Document Length: 6 bytes
 
Concurrency Level: 30
Time taken for tests: 106.624 seconds
Complete requests: 3000
Failed requests: 0
Write errors: 0
Total transferred: 1227000 bytes
HTML transferred: 18000 bytes
Requests per second: 28.14 [#/sec] (mean)
Time per request: 1066.243 [ms] (mean)
Time per request: 35.541 [ms] (mean, across all concurrent requests)
Transfer rate: 11.24 [Kbytes/sec] received
 
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.5 0 11
Processing: 1006 1061 35.1 1058 1200
Waiting: 1006 1060 34.8 1057 1199
Total: 1006 1061 35.2 1058 1200
 
Percentage of the requests served within a certain time (ms)
50% 1058
66% 1071
75% 1077
80% 1083
90% 1116
95% 1132
98% 1146
99% 1155
100% 1200 (longest request)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.