Request Details

Route
/api_complex GET
Timestamp
Sep 23, 2026 10:46 PM
Duration
111.63 ms
Status
204
Response Size
55 KB
Error
No

Performance Breakdown

Database
1.6% (2 queries)
View Rendering
7.8%
Application Logic
90.5%
Other Operations
0.0%
Total Operations
12
Slowest Operation
111.63 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 184.9ms 369.9ms 554.8ms 739.8ms

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 112 ms 100.0%
SELECT name FROM users 2 ms 1.8%
SELECT COUNT(*) FROM comments WHERE post_id = ? 10 ms 9.0%
home#api_complex 112 ms 100.0%
home#api_complex 112 ms 100.0%
users/index 32 ms 28.7%
users/index 6 ms 5.4%
posts/show 14 ms 12.5%
home#api_complex 112 ms 100.0%
home#api_complex 112 ms 100.0%
home#api_complex 112 ms 100.0%
posts/show 6 ms 5.4%