We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 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.