Welcome Guest, Not a member yet? Register   Sign In
help in performace
#1

[eluser]omar-303[/eluser]
hey guys,

i have been building a simple CMS using the Modular Extensions for PHP5 but i stopped when i made a benchmarking using ApacheBenchmark (ab) and found that it only pears 4.4 request/second ..

is that very bad/any ideas how to improve it?

Libraries Enabled : Database
Helpers Enabled : URL , and a custom helper
Models : 1 custom model

PS: i have only 2 db queries

My PC Config:

Ram : 512 mb
Processor : Intel Centrino 1.86
Apache : 2.2
XAMPP

here's the link <i have enabled the profiler> : http://www.omardev.net/ocms/
#2

[eluser]TheFuzzy0ne[/eluser]
I'm sorry, but I don't understand the question. Please elaborate.
#3

[eluser]omar-303[/eluser]
i am just wondering if the 4.4 request/second is very slow and indicate a proplem in my application or that is normal ?

and if it's wrong what the ways to optimize it ?

btw : the benchmark i done using this values
requests : 1000
conc : 100
#4

[eluser]TheFuzzy0ne[/eluser]
Oh, I see! Yes, that does sound very slow.

However, I am running Debian Etch with a Athlon 2400+ and only 256MB of RAM, and with the same test as you I have only 10.82 requests per second. It sure does sound slow.

I benchmarked google.co.uk. Here are the results:

[quote author="google.co.uk" date=""]
Benchmarking www.google.co.uk (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
Finished 1000 requests


Server Software: gws
Server Hostname: www.google.co.uk
Server Port: 80

Document Path: /
Document Length: 6533 bytes

Concurrency Level: 100
Time taken for tests: 64.944624 seconds
Complete requests: 1000
Failed requests: 185
(Connect: 0, Length: 185, Exceptions: 0)
Write errors: 0
Total transferred: 6858118 bytes
HTML transferred: 6523028 bytes
Requests per second: 15.40 [#/sec] (mean)
Time per request: 6494.463 [ms] (mean)
Time per request: 64.945 [ms] (mean, across all concurrent requests)
Transfer rate: 103.12 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 40 904 3938.6 43 45042
Processing: 91 105 50.2 96 1245
Waiting: 48 56 40.8 51 1202
Total: 134 1010 3938.5 139 45144

Percentage of the requests served within a certain time (ms)
50% 139
66% 141
75% 143
80% 146
90% 389
95% 3147
98% 21133
99% 21139
100% 45144 (longest request)

[/quote]

Bearing in mind that Google have some serious load balancing technology, I think our servers are doing pretty well.
#5

[eluser]omar-303[/eluser]
so around 11 request/second is normal on a shared hosting account?
#6

[eluser]TheFuzzy0ne[/eluser]
No. My server is not a shared host. It's my own dedicated server at home.
#7

[eluser]omar-303[/eluser]
thanks for your help




Theme © iAndrew 2016 - Forum software by © MyBB