Difference in performance: local machine VS amazon medium instance

Posted by user644745 on Server Fault See other posts from Server Fault or by user644745
Published on 2012-03-26T16:06:33Z Indexed on 2012/03/26 17:32 UTC
Read the original article Hit count: 412

Filed under:
|
|

I see a drastic difference in performance matrix when i run it with apache benchmark (ab) in my local machine VS production hosted in amazon medium instance. Same concurrent requests (5) and same total number of requests (111) has been run against both. Amazon has better memory than my local machine. But there are 2 CPUs in my local machine vs 1 CPU in m1.medium. My internet speed is very low at the moment, I am getting Transfer rate as 25.29KBps. How can I improve the performance ?

Do not know how to interpret Connect, Processing, Waiting and total in ab output.

Here is Localhost:

Server Hostname:        localhost
Server Port:            9999

Document Path:          /
Document Length:        7631 bytes

Concurrency Level:      5
Time taken for tests:   1.424 seconds
Complete requests:      111
Failed requests:        102
   (Connect: 0, Receive: 0, Length: 102, Exceptions: 0)
Write errors:           0
Total transferred:      860808 bytes
HTML transferred:       847155 bytes
Requests per second:    77.95 [#/sec] (mean)
Time per request:       64.148 [ms] (mean)
Time per request:       12.830 [ms] (mean, across all concurrent requests)
Transfer rate:          590.30 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.5      0       1
Processing:    14   63  99.9     43     562
Waiting:       14   60  96.7     39     560
Total:         14   63  99.9     43     563


And this is production:
Document Path:          /
Document Length:        7783 bytes

Concurrency Level:      5
Time taken for tests:   33.883 seconds
Complete requests:      111
Failed requests:        0
Write errors:           0
Total transferred:      877566 bytes
HTML transferred:       863913 bytes
Requests per second:    3.28 [#/sec] (mean)
Time per request:       1526.258 [ms] (mean)
Time per request:       305.252 [ms] (mean, across all concurrent requests)
Transfer rate:          25.29 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:      290  297  14.0    293     413
Processing:   897 1178  63.4   1176    1391
Waiting:      296  606 135.6    588    1171
Total:       1191 1475  66.0   1471    1684

© Server Fault or respective owner

Related posts about amazon-ec2

Related posts about Performance