My instinct would be tRPC and tools like Zod, particularly once you have business logic in there, will massively outweigh the performance limits of your http server
Well as soon as you add Zod you’re going to have synchronous work to do which will block the thread. You get big benefits but Zod just isn’t the fastest validator out there, just one of the most expressive and useful
I didn't record the results anywhere but at one point I benchmarked a bare fastify server vs a trpc fastify server. Simple json endpoint, requests through wrk on a macbook pro m1.
I think fastify maxed out ~60k req/s while trpc + fastify maxed out ~ 20k.