Jump to content
Sign in to follow this  
terryds

How to check the code load speed?

Recommended Posts

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 ....

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 by birbal

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...