Request Details

Route
/api_complex GET
Timestamp
Sep 10, 2026 1:27 AM
Duration
432.18 ms
Status
201
Response Size
55 KB
Error
No

Performance Breakdown

Database
0.1% (1 query)
View Rendering
5.1%
Application Logic
94.7%
Other Operations
0.0%
Total Operations
12
Slowest Operation
432.18 ms

Request Trace

How to read this

Each row is a layer of your stack. Many short Database bars means N+1 queries — fix with includes(). A wide Action bar with little Database time means slow Ruby code. A wide View bar usually means a partial rendered in a loop.

Action
View
Database
Other
Action
View
Database
0.0ms 570.2ms 1140.4ms 1710.7ms 2280.9ms

Operations

How to use this

Sort by Impact to find your biggest wins. Click any row for details and optimisation suggestions. The same SQL appearing multiple times is an N+1 — fix with includes(). A single operation above 50% impact is your highest priority.

Operation Duration Impact Timeline Actions
home#api_complex 432 ms 100.0%
posts/show 35 ms 8.1%
posts/show 15 ms 3.5%
home#api_complex 432 ms 100.0%
posts/show 18 ms 4.2%
home#api_complex 432 ms 100.0%
home/index 34 ms 7.9%
home/index 10 ms 2.3%
SELECT * FROM users WHERE id = ? 3 ms 0.7%
home#api_complex 432 ms 100.0%
home#api_complex 432 ms 100.0%
users/index 5 ms 1.2%