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

feat(schema): store groups metadata as customKey #2744

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

Romakita
Copy link
Collaborator

@Romakita Romakita commented Jul 2, 2024

Information

Type Breaking change
Feature No

Todos

  • Tests
  • Coverage
  • Example
  • Documentation

Copy link

github-actions bot commented Jul 2, 2024

Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v18.20.3
  • Run: Tue Jul 02 2024 09:11:27 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
koa 2.13.4 32781.8 29.97 5.85
tsed-koa 7.74.1 11665.8 84.93 9.88
express 4.19.2 10251.8 96.73 1.83
nest 8.4.3 9602.2 103.02 2.31
express-injector 4.19.2 9507.8 104.23 2.17
tsed-express 7.74.1 8199.6 120.92 1.50
express-morgan 4.19.2 5500.4 179.80 0.98
fastify-big-json 3.29.4 N/A N/A N/A
fastify-injector 3.29.4 N/A N/A N/A
fastify 3.29.4 N/A N/A N/A
nest-fastify 8.4.3 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 force-pushed the feat-schema-store-group-metadata branch from cdc10d1 to 4cfe18e Compare July 2, 2024 09:43
@Romakita Romakita merged commit 2709d8f into production Jul 2, 2024
2 of 13 checks passed
@Romakita Romakita deleted the feat-schema-store-group-metadata branch July 2, 2024 09:44
@Romakita
Copy link
Collaborator Author

Romakita commented Jul 2, 2024

🎉 This PR is included in version 7.75.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Jul 2, 2024

Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v18.20.3
  • Run: Tue Jul 02 2024 09:54:54 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
koa 2.13.4 32952.0 29.82 5.88
tsed-koa 7.74.2 11911.6 83.17 10.09
express 4.19.2 10320.6 95.88 1.84
express-injector 4.19.2 9894.4 100.26 2.25
nest 8.4.3 9324.9 106.31 2.24
tsed-express 7.74.2 8498.0 116.64 1.56
express-morgan 4.19.2 5549.6 178.36 0.99
fastify-big-json 3.29.4 N/A N/A N/A
fastify-injector 3.29.4 N/A N/A N/A
fastify 3.29.4 N/A N/A N/A
nest-fastify 8.4.3 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 ;)

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.

1 participant