fastify / fastify-nextjs

React server side rendering support for Fastify with Next
Other
532 stars 61 forks source link

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

Open jessekrubin opened 2 years ago

jessekrubin commented 2 years ago

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

Prerequisites

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!

climba03003 commented 2 years ago

Transfered to fastify-nextjs.

mcollina commented 2 years ago

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

jessekrubin commented 2 years ago

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

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

jessekrubin commented 2 years ago

@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?

mcollina commented 2 years ago

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