performance - Test PHP efficiency? -


I'm working on a website that has the attributes:

  • User signup <
  • User Login
  • Add Friend / Delete Friend
  • Karma
  • Hotlinks (Users can add any page there nav) < / Li>
  • Admin panel (available only for admin personnel)
  • User email system

    I have created all these things and all of them Te that should be like them I can test how the php scripts - not the page load time, but the actual runtime of each script on each page?

    You want to start the micro time.

    At the beginning of your script:

      $ startTime = microtime (true);   

    At the end of the script, be sure to use this variable method or else you can be negative:

      $ endTime = microtime (true) ; Echo ("taken time:". ($ Endtime - $ starttime));   

    At this time in milliseconds, you can:

      $ parseTime = $ endTime - $ startTime; $ Timetike = number_ format (($ parseTime * 1000), 3); Echo ($ tint. "MS");   

    A good way to benchmark just a look at the average run time of some popular PHP applications. Many people put parse time in pars.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -