Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List of PHP function for check the script performance

I'm now still in development my own CMS. can somebody inform me the list of function in PHP to check the performance of my script,

example:

  1. check how much resource needed to run my script
  2. check MySQL query time
  3. check script execution time and etc.

or maybe even if possible the javascript to check my JS script performance too

thanks

like image 262
GusDeCooL Avatar asked Mar 05 '26 08:03

GusDeCooL


1 Answers

You need profilers. There exists different profilers for PHP, Javascript and MySQL.

For PHP, a Google query and SO posts like Simplest way to profile a PHP script can help.

For Javascript, you can use Firebug.

For MySQL, follow general MySQL performance tips like mentioned in "Top performance tips for MySQL" and check your slow query log.

like image 63
Halil Özgür Avatar answered Mar 07 '26 22:03

Halil Özgür



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!