Benchmarks

Leveraging our experience with Node.js performance, Fastify has been built from the ground up to be as fast as possible.

All the code used for our benchmarks is available on GitHub.

Here's a brief summary on how fastify overhead performed against the some other well known Node.js web frameworks:

Fastify

47838 req/sec (Check the code)

66.65644855645971%

Koa

38772 req/sec (Check the code)

54.02407758332405%

Express

11119 req/sec (Check the code)

15.492977371530486%

Restify

35963 req/sec (Check the code)

50.11007691450229%

Hapi

26462 req/sec (Check the code)

36.871586222271766%

Please note that this is a synthetic, "hello world" benchmark that aims to evaluate the framework overhead. The overhead that each framework has on your application depends on your application, you should always benchmark if performance matters to you.

Do you want to provide feedback on our benchmarks? Open an issue on GitHub and we will get back to you!