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 replace extension #2719

Merged
merged 8 commits into from
Jun 1, 2024
Merged

Fix replace extension #2719

merged 8 commits into from
Jun 1, 2024

Conversation

Romakita
Copy link
Collaborator

@Romakita Romakita commented Jun 1, 2024

Information

Prepare code to ESM full

Copy link

github-actions bot commented Jun 1, 2024

Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v18.20.3
  • Run: Sat Jun 01 2024 15:23:43 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 33010.2 29.78 5.89
tsed-koa 7.70.2 11592.8 85.47 9.82
express 4.19.2 10221.5 97.00 1.82
express-injector 4.19.2 9715.0 101.92 2.21
nest 8.4.3 9326.4 106.29 2.24
tsed-express 7.70.2 8505.5 116.59 1.56
express-morgan 4.19.2 5556.0 178.10 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 ;)

Copy link

github-actions bot commented Jun 1, 2024

Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v18.20.3
  • Run: Sat Jun 01 2024 16:20:32 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 33698.2 29.14 6.01
tsed-koa 7.70.2 11900.0 83.31 10.08
express 4.19.2 10883.2 91.07 1.94
nest 8.4.3 9925.6 99.89 2.39
express-injector 4.19.2 9644.2 102.81 2.20
tsed-express 7.70.2 8687.5 114.13 1.59
express-morgan 4.19.2 5683.8 174.16 1.01
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 ;)

Copy link

github-actions bot commented Jun 1, 2024

Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v18.20.3
  • Run: Sat Jun 01 2024 16:32:21 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 33174.4 29.62 5.92
tsed-koa 7.70.2 11598.4 85.40 9.82
express 4.19.2 10150.4 97.74 1.81
nest 8.4.3 9499.1 104.36 2.28
express-injector 4.19.2 9435.5 104.98 2.15
tsed-express 7.70.2 8578.9 115.36 1.57
express-morgan 4.19.2 5623.1 176.09 1.00
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 ;)

Copy link

github-actions bot commented Jun 1, 2024

Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v18.20.3
  • Run: Sat Jun 01 2024 16:48:41 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 32993.6 29.78 5.88
tsed-koa 7.70.2 11641.1 85.12 9.86
express 4.19.2 10265.8 96.62 1.83
nest 8.4.3 9525.5 103.89 2.29
express-injector 4.19.2 9169.8 107.85 2.09
tsed-express 7.70.2 8207.0 120.83 1.50
express-morgan 4.19.2 5546.4 178.35 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 ;)

@Romakita Romakita merged commit 8cc98e6 into production Jun 1, 2024
15 checks passed
@Romakita Romakita deleted the fix-replace-extension branch June 1, 2024 17:00
Copy link

github-actions bot commented Jun 1, 2024

Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v18.20.3
  • Run: Sat Jun 01 2024 17:04:43 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 34066.2 28.83 6.07
tsed-koa 7.70.2 12025.8 82.36 10.19
express 4.19.2 10830.9 91.55 1.93
nest 8.4.3 10015.1 98.83 2.41
express-injector 4.19.2 9823.5 100.89 2.24
tsed-express 7.70.2 8668.9 114.38 1.59
express-morgan 4.19.2 5681.6 174.19 1.01
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 ;)

Copy link

github-actions bot commented Jun 1, 2024

Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v18.20.3
  • Run: Sat Jun 01 2024 17:06:25 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 34624.7 28.36 6.17
tsed-koa 7.70.2 12153.1 81.51 10.29
express 4.19.2 10608.4 93.46 1.89
nest 8.4.3 9953.6 99.60 2.39
express-injector 4.19.2 9601.4 103.24 2.19
tsed-express 7.70.2 8824.2 112.30 1.62
express-morgan 4.19.2 5570.0 177.70 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 ;)

@Romakita
Copy link
Collaborator Author

Romakita commented Jun 4, 2024

🎉 This PR is included in version 7.71.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.

1 participant