terryds Posted June 14, 2013 Share Posted June 14, 2013 Hi... I heard that the 'require' is slower than 'include'....But, i don't know how to check their speed..Please tell me how to check the php code speed .... Link to comment Share on other sites More sharing options...
thescientist Posted June 14, 2013 Share Posted June 14, 2013 http://www.google.com/#output=search&sclient=psy-ab&q=time+script+execution+php&pws=0&oq=time+script+execution+php&gs_l=hp.3..0j0i22i30l3.53.4979.0.5227.33.20.4.9.9.2.227.3078.0j19j1.20.0...0.0.0..1c.1.17.psy-ab.0OLCmlkBP0I&pbx=1&bav=on.2,or.r_qf.&bvm=bv.47883778,d.dmQ&fp=9150f448457007f1&biw=1440&bih=779 Link to comment Share on other sites More sharing options...
justsomeguy Posted June 14, 2013 Share Posted June 14, 2013 It's not noticeably slower, whether you use require or include depends on your needs, not which one is faster. Any speed difference might matter if you have 10 million include statements on your page, otherwise don't worry about things like that. There are much larger bottlenecks in programming than nanosecond differences between things like that. A single database connection will provide far more overhead than anything like require vs. include. Link to comment Share on other sites More sharing options...
birbal Posted June 15, 2013 Share Posted June 15, 2013 (edited) JSG has already given you the answer but apart from that if you want to track on execution time of php scripts you can install xdebug and enable to 'cachegrind' http://www.google.co....47883778,d.bmk which will profile your script. you can use wincache application or webgrind (web based cachegrind viewer) http://www.google.co....47883778,d.bmk to view the profiling in user friendly GUI Edited June 15, 2013 by birbal Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now