Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix providers.md #2443

Merged
merged 1 commit into from
Sep 22, 2023
Merged

docs: fix providers.md #2443

merged 1 commit into from
Sep 22, 2023

Conversation

LorianeE
Copy link
Collaborator

Information

Type Breaking change
Doc No

@github-actions
Copy link

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.2
  • Run: Thu Sep 21 2023 13:41:24 GMT+0000 (Coordinated Universal Time)
  • Method: autocannon -c 100 -d 10 -p 10 localhost:3000 (two rounds; one to warm-up, one to measure)
Version Router Requests/s Latency Throughput/Mb
fastify 3.29.4 50182.4 19.49 8.95
nest-fastify 8.4.3 45744.0 21.41 8.16
koa 2.13.4 38148.0 25.73 6.80
fastify-injector 3.29.4 25730.2 38.32 5.86
express 4.18.1 10108.8 98.12 1.80
tsed-koa 7.36.1 9135.5 108.52 7.98
nest 8.4.3 8825.4 112.28 2.12
fastify-big-json 3.29.4 8681.4 114.09 99.88
express-injector 4.18.1 8040.0 123.29 1.83
tsed-express 7.36.1 7261.3 136.49 1.33
express-morgan 4.18.1 5807.2 170.59 1.04

Explanation

The benchmark shows a performance difference between the frameworks. We note that Ts.ED is often last. In fact, Ts.ED uses features useful to a production application which reduce its performance.

For example, Ts.ED initializes a sandbox (async_hook) for each request in order to work in an isolated context if necessary.
It also initializes the elements necessary for monitoring requests in a log manager.

All this at a necessary cost that reflects the reality of a production application ;)

@Romakita Romakita merged commit 57dff8e into production Sep 22, 2023
33 checks passed
@Romakita Romakita deleted the doc-fix-providers branch September 22, 2023 13:18
@Romakita
Copy link
Collaborator

🎉 This PR is included in version 7.36.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants