PHP code's performance test

前端 未结 7 1826
自闭症患者
自闭症患者 2020-12-08 22:56

What is the best way for me to test my PHP code\'s performance?

相关标签:
7条回答
  • 2020-12-08 23:31

    If you want to test a specific part of the code, consider using the Benchmark package from the PHP PEAR library.

    $timer = new Benchmark_Timer();
    $timer->start();
    // Code to test here
    $timer->stop();
    $timer->display();
    
    0 讨论(0)
提交回复
热议问题