Is it expected for a default create T3 app to take 500ms+ on each route (in dev)

I tried running next dev --turbo with and without Drizzle, but I still can't understand why it's so slow in development mode when running locally. Should I try running React without Next.js or take other steps to improve it?
GET / 200 in 2353ms
āœ“ Compiled /api/trpc/[trpc] in 276ms
[TRPC] post.create took 422ms to execute
POST /api/trpc/post.create?batch=1 200 in 1087ms
[TRPC] post.getLatest took 447ms to execute
GET /api/trpc/post.getLatest?batch=1&input=%7B%220%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%7D 200 in 481ms
[TRPC] post.create took 268ms to execute
POST /api/trpc/post.create?batch=1 200 in 314ms
[TRPC] post.getLatest took 373ms to execute
GET /api/trpc/post.getLatest?batch=1&input=%7B%220%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%7D 200 in 408ms
[TRPC] post.hello took 131ms to execute
[TRPC] post.getLatest took 295ms to execute
GET / 200 in 514ms
GET / 200 in 2353ms
āœ“ Compiled /api/trpc/[trpc] in 276ms
[TRPC] post.create took 422ms to execute
POST /api/trpc/post.create?batch=1 200 in 1087ms
[TRPC] post.getLatest took 447ms to execute
GET /api/trpc/post.getLatest?batch=1&input=%7B%220%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%7D 200 in 481ms
[TRPC] post.create took 268ms to execute
POST /api/trpc/post.create?batch=1 200 in 314ms
[TRPC] post.getLatest took 373ms to execute
GET /api/trpc/post.getLatest?batch=1&input=%7B%220%22%3A%7B%22json%22%3Anull%2C%22meta%22%3A%7B%22values%22%3A%5B%22undefined%22%5D%7D%7D%7D 200 in 408ms
[TRPC] post.hello took 131ms to execute
[TRPC] post.getLatest took 295ms to execute
GET / 200 in 514ms
4 Replies
FleetAdmiralJakob šŸ—• šŸ—— šŸ—™
There are a lot of factors playing in here: Your PC and what other tasks are running on it. If the route is already cached. etc. etc.
olegbask
olegbaskOP•6mo ago
It's M1 MacBook with no load and the app was just created using all defaults. It seems that I can solve such issue with https://tanstack.com/start/latest
TanStack | High Quality Open-Source Software for Web Developers
Headless, type-safe, powerful utilities for complex workflows like Data Management, Data Visualization, Charts, Tables, and UI Components.
olegbask
olegbaskOP•6mo ago
I’m saying that replacing Next with Vite solves 500ms per request issue I saw in my initial post

Did you find this page helpful?