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

54104 req/sec (Check the code)

75.38735926875488%

Koa

38022 req/sec (Check the code)

52.979043584884636%

Express

11827 req/sec (Check the code)

16.479489466057295%

Restify

33541 req/sec (Check the code)

46.73531378887527%

Hapi

27892 req/sec (Check the code)

38.864117712629586%

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!