Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 573
Tom Avatar asked Nov 13 '22 23:11

Tom


1 Answers

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

like image 69
PatomaS Avatar answered Nov 15 '22 13:11

PatomaS