We use two tools to measure the performance of slow pages:
- 0x: Profile the application and generate flame graphs.
- autocannon: Load test (send lots of requests) and measure response time (which autocannon calls “latency”) & throughput.
Here’s a step-by-step guide of how to use these tools in Courselore:
-
Run the application normally.
Note: Don’t use a custom
HOSTNAME
, because autocannon may not recognize the self-signed certificate generated by Caddy.