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

Rc #2429

Merged
merged 32 commits into from
Sep 17, 2023
Merged

Rc #2429

merged 32 commits into from
Sep 17, 2023

Conversation

Romakita
Copy link
Collaborator

@Romakita Romakita commented Sep 7, 2023

Todos

  • Tests
  • Coverage
  • Example
  • Documentation

Romakita and others added 21 commits August 2, 2023 09:05
# Conflicts:
#	lerna.json
#	package.json
#	packages/core/package.json
#	packages/di/package.json
#	packages/engines/package.json
#	packages/graphql/apollo/package.json
#	packages/graphql/typegraphql/package.json
#	packages/orm/adapters-redis/package.json
#	packages/orm/adapters/package.json
#	packages/orm/ioredis/package.json
#	packages/orm/mikro-orm/package.json
#	packages/orm/mongoose/package.json
#	packages/orm/objection/package.json
#	packages/orm/prisma/package.json
#	packages/orm/testing-mongoose/package.json
#	packages/orm/typeorm/package.json
#	packages/perf/package.json
#	packages/platform/common/package.json
#	packages/platform/platform-cache/package.json
#	packages/platform/platform-exceptions/package.json
#	packages/platform/platform-express/package.json
#	packages/platform/platform-koa/package.json
#	packages/platform/platform-log-middleware/package.json
#	packages/platform/platform-middlewares/package.json
#	packages/platform/platform-params/package.json
#	packages/platform/platform-response-filter/package.json
#	packages/platform/platform-router/package.json
#	packages/platform/platform-serverless-http/package.json
#	packages/platform/platform-serverless-testing/package.json
#	packages/platform/platform-serverless/package.json
#	packages/platform/platform-test-sdk/package.json
#	packages/platform/platform-views/package.json
#	packages/security/jwks/package.json
#	packages/security/oidc-provider-plugin-wildcard-redirect-uri/package.json
#	packages/security/oidc-provider/package.json
#	packages/security/passport/package.json
#	packages/specs/ajv/package.json
#	packages/specs/exceptions/package.json
#	packages/specs/json-mapper/package.json
#	packages/specs/openspec/package.json
#	packages/specs/schema/jest.config.js
#	packages/specs/schema/package.json
#	packages/specs/schema/src/components/anyMapper.ts
#	packages/specs/schema/src/domain/JsonMap.ts
#	packages/specs/schema/src/domain/JsonMedia.ts
#	packages/specs/schema/src/domain/JsonOperation.ts
#	packages/specs/schema/src/domain/JsonOperationPathsMap.ts
#	packages/specs/schema/src/domain/JsonParameter.ts
#	packages/specs/schema/src/domain/JsonRequestBody.ts
#	packages/specs/schema/src/domain/JsonResponse.ts
#	packages/specs/schema/src/domain/JsonSchema.ts
#	packages/specs/schema/src/tsconfig.json
#	packages/specs/schema/test/tsconfig.json
#	packages/specs/swagger/package.json
#	packages/third-parties/agenda/package.json
#	packages/third-parties/components-scan/package.json
#	packages/third-parties/event-emitter/package.json
#	packages/third-parties/formio-types/package.json
#	packages/third-parties/formio/package.json
#	packages/third-parties/schema-formio/package.json
#	packages/third-parties/socketio-testing/package.json
#	packages/third-parties/socketio/package.json
#	packages/third-parties/stripe/package.json
#	packages/third-parties/terminus/package.json
#	packages/third-parties/vite-ssr-plugin/package.json
#	packages/utils/normalize-path/package.json
#	tools/eslint/package.json
#	tools/github-sponsors/package.json
#	tools/integration/package.json
#	tools/jest/package.json
#	tools/mocha/package.json
#	tools/typescript/package.json
#	tools/webpack/package.json
@github-actions
Copy link

github-actions bot commented Sep 7, 2023

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.2
  • Run: Thu Sep 07 2023 06:01:00 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 28590.4 34.54 5.10
nest-fastify 8.4.3 25715.2 38.45 4.59
koa 2.13.4 20325.2 48.70 3.62
fastify-injector 3.29.4 15761.2 63.22 3.59
fastify-big-json 3.29.4 6226.8 159.61 71.63
express 4.18.1 6014.0 164.29 1.07
tsed-koa 7.34.9 5459.9 181.56 4.77
nest 8.4.3 5186.8 191.09 1.25
express-injector 4.18.1 4741.1 208.71 1.08
tsed-express 7.34.9 4443.3 222.47 0.81
express-morgan 4.18.1 3609.8 273.71 0.64

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 ;)

# Conflicts:
#	lerna.json
#	package.json
#	packages/core/package.json
#	packages/di/package.json
#	packages/engines/package.json
#	packages/graphql/apollo/package.json
#	packages/graphql/typegraphql/package.json
#	packages/orm/adapters-redis/package.json
#	packages/orm/adapters/package.json
#	packages/orm/ioredis/package.json
#	packages/orm/mikro-orm/package.json
#	packages/orm/mongoose/package.json
#	packages/orm/objection/package.json
#	packages/orm/prisma/package.json
#	packages/orm/testing-mongoose/package.json
#	packages/orm/typeorm/package.json
#	packages/perf/package.json
#	packages/platform/common/package.json
#	packages/platform/platform-cache/package.json
#	packages/platform/platform-exceptions/package.json
#	packages/platform/platform-express/package.json
#	packages/platform/platform-koa/package.json
#	packages/platform/platform-log-middleware/package.json
#	packages/platform/platform-middlewares/package.json
#	packages/platform/platform-params/package.json
#	packages/platform/platform-response-filter/package.json
#	packages/platform/platform-router/package.json
#	packages/platform/platform-serverless-http/package.json
#	packages/platform/platform-serverless-testing/package.json
#	packages/platform/platform-serverless/package.json
#	packages/platform/platform-test-sdk/package.json
#	packages/platform/platform-views/package.json
#	packages/security/jwks/package.json
#	packages/security/oidc-provider-plugin-wildcard-redirect-uri/package.json
#	packages/security/oidc-provider/package.json
#	packages/security/passport/package.json
#	packages/specs/ajv/package.json
#	packages/specs/exceptions/package.json
#	packages/specs/json-mapper/package.json
#	packages/specs/openspec/package.json
#	packages/specs/schema/package.json
#	packages/specs/swagger/package.json
#	packages/third-parties/agenda/package.json
#	packages/third-parties/components-scan/package.json
#	packages/third-parties/event-emitter/package.json
#	packages/third-parties/formio-types/package.json
#	packages/third-parties/formio/package.json
#	packages/third-parties/schema-formio/package.json
#	packages/third-parties/socketio-testing/package.json
#	packages/third-parties/socketio/package.json
#	packages/third-parties/stripe/package.json
#	packages/third-parties/terminus/package.json
#	packages/third-parties/vite-ssr-plugin/package.json
#	packages/utils/normalize-path/package.json
#	tools/eslint/package.json
#	tools/github-sponsors/package.json
#	tools/integration/package.json
#	tools/jest/package.json
#	tools/mocha/package.json
#	tools/typescript/package.json
#	tools/webpack/package.json
@github-actions
Copy link

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.2
  • Run: Tue Sep 12 2023 06:55:12 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 42851.2 22.98 7.64
nest-fastify 8.4.3 39400.8 24.88 7.03
koa 2.13.4 33443.2 29.51 5.96
fastify-injector 3.29.4 22769.6 43.51 5.19
express 4.18.1 8619.8 115.38 1.54
tsed-koa 7.35.0-rc.1 7809.8 126.84 6.82
nest 8.4.3 7449.6 133.26 1.79
fastify-big-json 3.29.4 7382.8 134.22 84.93
express-injector 4.18.1 6595.2 150.19 1.50
tsed-express 7.35.0-rc.1 5990.0 165.42 1.10
express-morgan 4.18.1 4992.6 198.08 0.89

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 ;)

@github-actions
Copy link

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.2
  • Run: Tue Sep 12 2023 18:35: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
fastify 3.29.4 56796.8 17.16 10.13
nest-fastify 8.4.3 48054.4 20.32 8.57
koa 2.13.4 42163.2 23.20 7.52
fastify-injector 3.29.4 28667.2 34.39 6.53
express 4.18.1 11574.9 85.66 2.06
fastify-big-json 3.29.4 10693.5 92.67 123.03
tsed-koa 7.36.0-rc.1 10510.4 94.30 9.18
nest 8.4.3 10193.6 97.23 2.45
express-injector 4.18.1 9654.0 102.65 2.20
tsed-express 7.36.0-rc.1 8652.6 114.61 1.58
express-morgan 4.18.1 7051.1 140.63 1.26

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 ;)

@github-actions
Copy link

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.2
  • Run: Wed Sep 13 2023 07:37:22 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 46156.8 21.29 8.23
nest-fastify 8.4.3 40697.6 24.08 7.26
koa 2.13.4 31799.2 30.98 5.67
fastify-injector 3.29.4 22812.8 43.31 5.20
express 4.18.1 8612.9 115.21 1.54
tsed-koa 7.36.0-rc.2 7824.8 126.65 6.84
nest 8.4.3 7374.0 134.37 1.77
fastify-big-json 3.29.4 7371.2 134.61 84.79
express-injector 4.18.1 6775.5 146.08 1.54
tsed-express 7.36.0-rc.2 6159.2 160.56 1.13
express-morgan 4.18.1 4948.9 199.95 0.88

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 ;)

@github-actions
Copy link

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.2
  • Run: Wed Sep 13 2023 10:32:49 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 50771.2 19.24 9.05
nest-fastify 8.4.3 46969.6 20.84 8.38
koa 2.13.4 38244.0 25.70 6.82
fastify-injector 3.29.4 26432.0 37.29 6.02
express 4.18.1 10237.0 96.82 1.83
tsed-koa 7.36.0-rc.2 9370.6 105.89 8.18
fastify-big-json 3.29.4 8734.2 113.47 100.46
nest 8.4.3 8715.1 113.75 2.09
express-injector 4.18.1 7982.4 124.18 1.82
tsed-express 7.36.0-rc.2 7194.0 137.76 1.32
express-morgan 4.18.1 5785.2 171.39 1.03

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 ;)

@github-actions
Copy link

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.2
  • Run: Wed Sep 13 2023 10:59:52 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 48924.8 20.00 8.72
nest-fastify 8.4.3 44659.2 21.94 7.96
koa 2.13.4 36978.4 26.55 6.59
fastify-injector 3.29.4 24718.4 39.92 5.63
express 4.18.1 9891.8 100.32 1.76
tsed-koa 7.36.0-rc.2 9224.2 107.64 8.06
fastify-big-json 3.29.4 8503.0 117.06 97.81
nest 8.4.3 8444.2 117.63 2.03
express-injector 4.18.1 7761.2 127.68 1.77
tsed-express 7.36.0-rc.2 7128.8 138.99 1.31
express-morgan 4.18.1 5909.6 168.11 1.05

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 ;)

@github-actions
Copy link

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.2
  • Run: Wed Sep 13 2023 13:34:05 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 54476.8 17.89 9.72
nest-fastify 8.4.3 49420.8 19.76 8.81
koa 2.13.4 40677.6 24.13 7.25
fastify-injector 3.29.4 28675.2 34.35 6.54
express 4.18.1 11348.8 87.30 2.02
fastify-big-json 3.29.4 10311.2 96.13 118.64
tsed-koa 7.36.0-rc.3 10203.0 97.23 8.91
nest 8.4.3 10036.5 98.63 2.41
express-injector 4.18.1 9269.4 107.01 2.11
tsed-express 7.36.0-rc.3 8458.4 117.19 1.55
express-morgan 4.18.1 6805.2 145.91 1.21

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 ;)

@github-actions
Copy link

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.2
  • Run: Wed Sep 13 2023 15:40:05 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 58464.0 16.64 10.43
nest-fastify 8.4.3 52246.4 18.66 9.32
koa 2.13.4 43571.2 22.45 7.77
fastify-injector 3.29.4 29184.0 33.77 6.65
express 4.18.1 11604.0 85.44 2.07
fastify-big-json 3.29.4 10935.2 90.84 125.79
tsed-koa 7.36.0-rc.3 10679.2 92.86 9.33
nest 8.4.3 10514.4 94.39 2.53
express-injector 4.18.1 9507.4 104.23 2.17
tsed-express 7.36.0-rc.3 8645.8 114.55 1.58
express-morgan 4.18.1 6996.9 141.65 1.25

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 ;)

@github-actions
Copy link

Benchmarks

  • Machine: linux x64 | 2 vCPUs | 6.8GB Mem
  • Node: v16.20.2
  • Run: Thu Sep 14 2023 10:11: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
fastify 3.29.4 51417.6 19.00 9.17
nest-fastify 8.4.3 47542.4 20.57 8.48
koa 2.13.4 39548.8 24.84 7.05
fastify-injector 3.29.4 26076.8 37.82 5.94
express 4.18.1 10237.3 96.94 1.83
tsed-koa 7.36.0-rc.4 9244.9 107.24 8.08
nest 8.4.3 8832.2 112.46 2.12
fastify-big-json 3.29.4 8813.8 112.44 101.40
express-injector 4.18.1 8130.7 122.04 1.85
tsed-express 7.36.0-rc.4 7282.0 136.33 1.33
express-morgan 4.18.1 5893.6 168.01 1.05

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 314237a into production Sep 17, 2023
35 of 36 checks passed
@Romakita Romakita deleted the rc branch September 17, 2023 07:42
@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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants