PHP execution times takes like timer: 37.1496469975 seconds?

You need to profile your code Try using XDebug If that is too daunting, you can echo time() at points all through your code. When the request takes 30 seconds, you will clearly see what block it is happening at. Narrow it down untill you figure it out You can also check the mysql slow query log.

You need to profile your code. Try using XDebug, If that is too daunting, you can echo time() at points all through your code. When the request takes 30 seconds, you will clearly see what block it is happening at.

Narrow it down untill you figure it out. You can also check the mysql slow query log.

– MonoMano Jan 24 at 23:52 1 Then try doing a log to a file instead of writing to the console. If you don't do some sort of profiling, you are shooting in the dark and really wasting time. I'd check the slow query log in mysql on production.

You could have a race condition. – Byron Whitlock Jan 24 at 23:52 no there are no special activity, just a long query, and as I say on my question body, somethinks it only takes 0.08 seconds, but when I reload the page it makes that script run slow and them for a log period every page request are slow. I'll try to use the xdebug for debug performance.

Any way I have already optimize the mysql query consult with explain and i'm implementing the memcached. – Angel Estrada Jan 25 at 0:10 if you have sometime to view this: app.promls.Net, it only load a html so it does not take too much time to execute. I have a microtime execution on index – Angel Estrada Jan 25 at 0:49.

The next step you need to take is to find out how long the different parts of your PHP code are taking to execute. Then narrow down the scope of what you're timing as you find the parts that are taking the most time. Eventually you will reach particular operations, like a MySQL query or an HTTP retrieval, that are taking unusually large or variable amounts of time.

Then you know what's actually going on with your script.

Yeah, i'm going to debug my app using xdebug for know to see what can I optimize. – Angel Estrada Jan 25 at 0:12.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions