We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

[SOLVED]How can I know the execution time of each request

use microtime(true) in index.php?

Thanks.



98.9k
Accepted
answer

You can use apache bench https://en.wikipedia.org/wiki/ApacheBench, or simply add a microtime() (https://www.php.net/manual/en/function.microtime.php) before start the request and another after ending it.