fastify-nextjs icon indicating copy to clipboard operation
fastify-nextjs copied to clipboard

Would be interested in seeing some sort of benchmarks (@fastify/nextjs)

Open jessekrubin opened this issue 2 years ago • 5 comments

EDIT: I thought I was posting this specifically on the fastify-nextjs repo.

Prerequisites

  • [X] I have written a descriptive issue title
  • [X] I have searched existing issues to ensure the issue has not already been raised

Issue

EDIT: I thought I was posting this specifically on the fastify-nextjs repo.

No issue to report. Just here to say that I would be interested in seeing some sort of benchmarks against an express custom server and/or a vanilla next app.

Food for thought!

jessekrubin avatar Jul 02 '22 03:07 jessekrubin

Transfered to fastify-nextjs.

climba03003 avatar Jul 02 '22 05:07 climba03003

Thanks for reporting! Would you like to send a Pull Request to address this issue?

mcollina avatar Jul 02 '22 07:07 mcollina

For sure! Anything to help push the fastify ecosystem forward!

(Just gotta find the free time which I might have this weekend)

jessekrubin avatar Jul 02 '22 21:07 jessekrubin

@mcollina I did some testing of this over the weekend and can write it up when I have time... BUT it all comes down to fastify-nextjs being just as fast as the next server, tho if you are using fastify-nextjs there is a higher warmup cost than there is with just next. I did a bunch of different trials and fastify came to the conclusion that it is mostly "too close to call!"

PS: I used this cool cli tool to do the testing called 'autocannon', maybe you have heard of it?

jessekrubin avatar Jul 20 '22 16:07 jessekrubin

Seems about right, it is the next server after all ;).

mcollina avatar Jul 21 '22 06:07 mcollina