Compare the response time of a PHP page with a static file
is php or the server slow | narrow down slow wordpress response time | ttfb dynamic vs static | why is my website slow | curl | ttfb | php | response-timefor u in https://example.com/ https://example.com/wp-includes/css/dist/block-library/style.min.css; do curl -o /dev/null -s -w "%{time_starttransfer}s TTFB $u\n" "$u"; doneRequests a PHP-generated page and a static file from the same domain one after the other. If the static file is fast and the PHP page slow, the problem lies in PHP, the database or plugins. If both are slow, the network, TLS or an overloaded web server are more likely the cause.
Note: Multiple runs smooth out outliers, see the entry on measuring TTFB repeatedly. A page cache can make the PHP page appear faster than it is without the cache.
Also searched as
- is php or the server slow
- narrow down slow wordpress response time
- ttfb dynamic vs static
- why is my website slow