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 website pricing #2296

Open
wants to merge 2 commits into
base: production
Choose a base branch
from
Open

Feat website pricing #2296

wants to merge 2 commits into from

Conversation

Romakita
Copy link
Collaborator

@Romakita Romakita commented Apr 1, 2023

No description provided.

@github-actions
Copy link

github-actions bot commented Apr 1, 2023

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.19.1
  • Run: Sat Apr 01 2023 10:05:48 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 51843.2 18.82 9.25
nest-fastify 8.4.3 47635.2 20.49 8.50
koa 2.13.4 40000.0 24.49 7.13
fastify-injector 3.29.4 23568.0 41.89 5.37
express 4.18.1 10004.9 99.14 1.78
fastify-big-json 3.29.4 9336.6 106.53 107.41
tsed-koa 7.18.3 9147.1 108.39 7.99
nest 8.4.3 8794.2 112.82 2.11
express-injector 4.18.1 8059.8 123.14 1.84
tsed-express 7.18.3 7085.6 139.57 1.30
express-morgan 4.18.1 6003.1 164.67 1.07

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

Successfully merging this pull request may close these issues.

None yet

1 participant