IonWarp logoIonWarp
Code agent

API Performance

Details

Runs on every pull request, on GitHub

Agent Prompt

Reviews GitHub PRs for API and server performance regressions — event-loop blocking calls, serial awaits, N+1 and read-amplified database queries, missing pagination, awaited telemetry on hot paths — plus bundle-size jumps and render/CLS regressions. Every finding states its blast radius. Posts structured review comments with severity levels and fixes.

Ask for it
  • Review PR {number} for performance
Sample Output

What a API Performance report looks like.

IonWarpbotcommented 2 min ago

IonWarp Review — PR #422

3 issues| 1 P0 2 P1
#SevIssueFile
1N+1 query — one round-trip per idapi/users.ts
2Serial await over independent fetchesapi/teams.ts
3Analytics emit awaited on the hot pathlib/track.ts
api/users.ts
14151617
+
for (const id of ids) {  users.push(await db.user(id))}const users = await db.users({ where: { id: { in: ids } } })

N+1 query in the user listing · API Performance

One round-trip per id on a per-request path — the endpoint pays N database hops where a single WHERE IN serves. Batch it.

Suggested fixAI fix prompt