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

55748 req/sec (Check the code)

77.67807379333408%

Koa

38584 req/sec (Check the code)

53.7621223943819%

Express

11859 req/sec (Check the code)

16.524077583324047%

Restify

35874 req/sec (Check the code)

49.98606621335414%

Hapi

29672 req/sec (Check the code)

41.34433173559246%

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!