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

fix(exception): add capture stack trace #2408

Merged
merged 2 commits into from
Aug 15, 2023
Merged

Conversation

Romakita
Copy link
Collaborator

Closes: #2402

@github-actions
Copy link

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.1
  • Run: Fri Aug 11 2023 07:22:53 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 56876.8 17.12 10.15
nest-fastify 8.4.3 52009.6 18.78 9.28
koa 2.13.4 40796.8 24.00 7.28
express 4.18.1 11434.5 86.72 2.04
fastify-big-json 3.29.4 10745.6 92.38 123.62
nest 8.4.3 10348.0 95.83 2.49
express-morgan 4.18.1 7082.4 140.32 1.26
express-injector 4.18.1 N/A N/A N/A
fastify-injector 3.29.4 N/A N/A N/A
tsed-express 7.34.2 N/A N/A N/A
tsed-koa 7.34.2 N/A N/A N/A

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 18d76aa into production Aug 15, 2023
36 checks passed
@Romakita Romakita deleted the fix-2402-exception-stack branch August 15, 2023 13:28
@Romakita
Copy link
Collaborator Author

🎉 This PR is included in version 7.34.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Romakita
Copy link
Collaborator Author

Romakita commented Sep 6, 2023

🎉 This PR is included in version 7.35.0-beta.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Romakita
Copy link
Collaborator Author

Romakita commented Sep 7, 2023

🎉 This PR is included in version 7.35.0-rc.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Romakita
Copy link
Collaborator Author

🎉 This PR is included in version 7.36.0-rc.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Romakita
Copy link
Collaborator Author

🎉 This PR is included in version 7.36.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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Exceptions (and descendants) have stack: undefined
1 participant