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 example in agenda.md #2565

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Conversation

LorianeE
Copy link
Collaborator

@LorianeE LorianeE commented Jan 5, 2024

Information

Type Breaking change
Doc No

Todos

  • Tests
  • Coverage
  • Example
  • Documentation

Copy link

github-actions bot commented Jan 5, 2024

Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v16.20.2
  • Run: Fri Jan 05 2024 14:21:07 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 55088.0 17.64 9.82
nest-fastify 8.4.3 49644.8 19.65 8.85
koa 2.13.4 39618.2 24.73 7.07
fastify-injector 3.29.4 27743.3 35.50 6.32
express 4.18.1 12289.1 80.68 2.19
tsed-koa 7.55.0 11769.1 84.17 10.28
fastify-big-json 3.29.4 11500.0 86.17 132.30
nest 8.4.3 10553.1 93.98 2.54
express-injector 4.18.1 10439.4 94.87 2.38
tsed-express 7.55.0 9480.5 104.63 1.74
express-morgan 4.18.1 7172.0 138.42 1.28

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 0236c48 into production Jan 5, 2024
31 checks passed
@Romakita Romakita deleted the doc-fix-agenda-tutorial branch January 5, 2024 16:14
@Romakita
Copy link
Collaborator

🎉 This PR is included in version 7.56.0 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants