[erlang-questions] ab with erlang and PHP?which is better??

Fred Hebert mononcqc@REDACTED
Thu Apr 8 20:56:18 CEST 2010


You should include the code (or link to it) if you want people to have an
idea of what's going wrong.

On Thu, Apr 8, 2010 at 2:46 PM, Saravana <navaneethanit@REDACTED> wrote:

> Here i created the application that is used to show the results from
> the mysql database by both erlang and PHP ..to measure the
> performance...
> just here i used ab benchmark to make it as sample....
>
>
> PHP application by apache benchmark results:
>
> nava@REDACTED:~$ ab -n 1000 -c 5 http://localhost/sample.php
> 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 localhost (be patient)
> Completed 100 requests
> Completed 200 requests
> Completed 300 requests
> Completed 400 requests
> Completed 500 requests
> Completed 600 requests
> Completed 700 requests
> Completed 800 requests
> Completed 900 requests
> Completed 1000 requests
> Finished 1000 requests
>
>
> Server Software:        Apache/2.2.11
> Server Hostname:        localhost
> Server Port:            80
>
> Document Path:          /sample.php
> Document Length:        461 bytes
>
> Concurrency Level:      5
> Time taken for tests:   0.616 seconds
> Complete requests:      1000
> Failed requests:        0
> Write errors:           0
> Total transferred:      713713 bytes
> HTML transferred:       461461 bytes
> Requests per second:    1622.77 [#/sec] (mean)
> Time per request:       3.081 [ms] (mean)
> Time per request:       0.616 [ms] (mean, across all concurrent
> requests)
> Transfer rate:          1131.05 [Kbytes/sec] received
>
> Connection Times (ms)
>              min  mean[+/-sd] median   max
> Connect:        0    0   0.2      0       4
> Processing:     1    3   2.5      2      44
> Waiting:        1    3   2.1      2      44
> Total:          1    3   2.5      2      44
>
> Percentage of the requests served within a certain time (ms)
>  50%      2
>  66%      3
>  75%      4
>  80%      4
>  90%      5
>  95%      7
>  98%      8
>  99%     11
>  100%     44 (longest request)
>
> Erlang web application by apache benchmark::
>
> nava@REDACTED:~$ ab -n 1000 -c 5 http://localhost:8000/
> 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 localhost (be patient)
> Completed 100 requests
> Completed 200 requests
> Completed 300 requests
> Completed 400 requests
> Completed 500 requests
> Completed 600 requests
> Completed 700 requests
> Completed 800 requests
> Completed 900 requests
> Completed 1000 requests
> Finished 1000 requests
>
>
> Server Software:        inets/5.0.12
> Server Hostname:        localhost
> Server Port:            8000
>
> Document Path:          /
> Document Length:        2689 bytes
>
> Concurrency Level:      5
> Time taken for tests:   6.255 seconds
> Complete requests:      1000
> Failed requests:        962
>   (Connect: 0, Receive: 0, Length: 962, Exceptions: 0)
> Write errors:           0
> Total transferred:      2982026 bytes
> HTML transferred:       2696682 bytes
> Requests per second:    159.88 [#/sec] (mean)
> Time per request:       31.273 [ms] (mean)
> Time per request:       6.255 [ms] (mean, across all concurrent
> requests)
> Transfer rate:          465.59 [Kbytes/sec] received
>
> Connection Times (ms)
>              min  mean[+/-sd] median   max
> Connect:        0    0   0.2      0       4
> Processing:    20   31   7.1     31      91
> Waiting:       20   31   6.8     30      72
> Total:         20   31   7.1     31      91
>
> Percentage of the requests served within a certain time (ms)
>  50%     31
>  66%     33
>  75%     35
>  80%     36
>  90%     38
>  95%     43
>  98%     49
>  99%     62
>  100%     91 (longest request)
>
> when we compared both ...incredibly happened..erlang has high response
> time how?
> what happened?what went wrong??just give some suggestions???
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>


More information about the erlang-questions mailing list