Jump to content

How to check the code load speed?


terryds

Recommended Posts

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

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
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...