Tom
Tom

Reputation: 1045

How much does Xdebug profiling inflate the real execution time?

I have an Xdebug cachegrind file in webgrind showing that 1061 different functions were called in 5865 milliseconds - when I disable profiling the script doesn't take that many milliseconds - I realize I could work this out but does anyone know the approximate percentage increase in execution time caused by Xdebug profiling?

Thanks

Upvotes: 5

Views: 564

Answers (1)

PatomaS
PatomaS

Reputation: 1603

It's really difficult to say a specific number or percentage since that depends in the type and quantity of function calls, variables used and options you set in your xdebug.ini.

Here you can check a bit of research and tests done by some people.
short information about xdebug and the lexer cals

xdebug support mailing list

But of course, the final answer is yours, your application, your coding standards and your configurations are the ones that will set the final overhead.

Just remember, that as a general rule, xdebug should not be active in a production server. Some people have it enabled and everything is ok, but it's usually not a good idea.

Bye

Upvotes: 1

Related Questions