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

45659 req/sec (Check the code)

63.620276446327054%

Koa

34725 req/sec (Check the code)

48.38507412774496%

Express

9888 req/sec (Check the code)

13.77772823542526%

Restify

33044 req/sec (Check the code)

46.04280459257608%

Hapi

29287 req/sec (Check the code)

40.8078809497269%

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!