-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update test:uncommitted task with right dependency #472
Merged
notaphplover
merged 1 commit into
main
from
chore/add-missing-turbo-test-uncommitted-dependency
Mar 7, 2025
Merged
Update test:uncommitted task with right dependency #472
notaphplover
merged 1 commit into
main
from
chore/add-missing-turbo-test-uncommitted-dependency
Mar 7, 2025
+1
−0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Benchmarks results:> root@ benchmarks:container:cjs /home/runner/work/monorepo/monorepo
> pnpm run --filter "@inversifyjs/container-benchmarks" benchmarks:run:cjs
> @inversifyjs/container-benchmarks@ benchmarks:run:cjs /home/runner/work/monorepo/monorepo/packages/container/tools/container-benchmarks
> ./bin/run-cjs.cjs
[CJS] Running benchmarks...
Get service in singleton scope
┌─────────┬────────────────────┬──────────────────┬──────────────────┬────────────────────────┬────────────────────────┬─────────┐
│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │
├─────────┼────────────────────┼──────────────────┼──────────────────┼────────────────────────┼────────────────────────┼─────────┤
│ 0 │ 'inversifyCurrent' │ '293.81 ± 1.04%' │ '271.00 ± 9.00' │ '3614936 ± 0.01%' │ '3690037 ± 118608' │ 3403599 │
│ 1 │ 'inversify6' │ '1043.5 ± 2.54%' │ '962.00 ± 11.00' │ '1022060 ± 0.01%' │ '1039501 ± 12024' │ 958345 │
│ 2 │ 'NestJS' │ '321.57 ± 3.64%' │ '291.00 ± 9.00' │ '3361883 ± 0.01%' │ '3436426 ± 103093' │ 3109706 │
│ 3 │ 'tsyringe' │ '313.45 ± 0.57%' │ '291.00 ± 9.00' │ '3366146 ± 0.01%' │ '3436426 ± 103093' │ 3190252 │
└─────────┴────────────────────┴──────────────────┴──────────────────┴────────────────────────┴────────────────────────┴─────────┘
inversifyCurrent vs inversify6 Speedup: 3.537x
inversifyCurrent vs NestJS Speedup: 1.075x
inversifyCurrent vs tsyringe Speedup: 1.074x
Get service in transient scope
┌─────────┬────────────────────┬──────────────────┬───────────────────┬────────────────────────┬────────────────────────┬─────────┐
│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │
├─────────┼────────────────────┼──────────────────┼───────────────────┼────────────────────────┼────────────────────────┼─────────┤
│ 0 │ 'inversifyCurrent' │ '637.98 ± 0.40%' │ '601.00 ± 10.00' │ '1634616 ± 0.01%' │ '1663894 ± 27232' │ 1567437 │
│ 1 │ 'inversify6' │ '6552.3 ± 3.33%' │ '6182.0 ± 100.00' │ '160148 ± 0.04%' │ '161760 ± 2660' │ 152618 │
│ 2 │ 'NestJS' │ '9301.0 ± 1.30%' │ '7945.0 ± 171.00' │ '120787 ± 0.08%' │ '125865 ± 2769' │ 107516 │
│ 3 │ 'tsyringe' │ '479.98 ± 0.62%' │ '441.00 ± 10.00' │ '2225152 ± 0.01%' │ '2267574 ± 50279' │ 2083416 │
└─────────┴────────────────────┴──────────────────┴───────────────────┴────────────────────────┴────────────────────────┴─────────┘
inversifyCurrent vs inversify6 Speedup: 10.207x
inversifyCurrent vs NestJS Speedup: 13.533x
inversifyCurrent vs tsyringe Speedup: 0.735x
Get complex service in singleton scope
┌─────────┬────────────────────┬──────────────────┬──────────────────┬────────────────────────┬────────────────────────┬─────────┐
│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │
├─────────┼────────────────────┼──────────────────┼──────────────────┼────────────────────────┼────────────────────────┼─────────┤
│ 0 │ 'inversifyCurrent' │ '316.40 ± 1.79%' │ '291.00 ± 9.00' │ '3377284 ± 0.01%' │ '3436426 ± 103093' │ 3160558 │
│ 1 │ 'inversify6' │ '1018.2 ± 0.54%' │ '961.00 ± 19.00' │ '1026939 ± 0.01%' │ '1040583 ± 20988' │ 982112 │
│ 2 │ 'NestJS' │ '346.11 ± 0.48%' │ '321.00 ± 9.00' │ '3048895 ± 0.01%' │ '3115265 ± 84962' │ 2889293 │
│ 3 │ 'tsyringe' │ '348.26 ± 1.16%' │ '311.00 ± 9.00' │ '3128451 ± 0.01%' │ '3215434 ± 90434' │ 2871386 │
└─────────┴────────────────────┴──────────────────┴──────────────────┴────────────────────────┴────────────────────────┴─────────┘
inversifyCurrent vs inversify6 Speedup: 3.289x
inversifyCurrent vs NestJS Speedup: 1.108x
inversifyCurrent vs tsyringe Speedup: 1.080x
Get complex service in transient scope
┌─────────┬────────────────────┬───────────────────┬───────────────────────┬────────────────────────┬────────────────────────┬─────────┐
│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │
├─────────┼────────────────────┼───────────────────┼───────────────────────┼────────────────────────┼────────────────────────┼─────────┤
│ 0 │ 'inversifyCurrent' │ '401310 ± 0.83%' │ '390633 ± 5225.00' │ '2520 ± 0.29%' │ '2560 ± 34' │ 2492 │
│ 1 │ 'inversify6' │ '4855531 ± 1.04%' │ '4652214 ± 135703.00' │ '207 ± 0.97%' │ '215 ± 6' │ 206 │
│ 2 │ 'NestJS' │ '58782 ± 1.02%' │ '53991 ± 672.00' │ '18095 ± 0.15%' │ '18522 ± 231' │ 17012 │
│ 3 │ 'tsyringe' │ '254878 ± 0.41%' │ '247572 ± 2975.50' │ '3962 ± 0.24%' │ '4039 ± 49' │ 3924 │
└─────────┴────────────────────┴───────────────────┴───────────────────────┴────────────────────────┴────────────────────────┴─────────┘
inversifyCurrent vs inversify6 Speedup: 12.170x
inversifyCurrent vs NestJS Speedup: 0.139x
inversifyCurrent vs tsyringe Speedup: 0.636x > root@ benchmarks:container:esm /home/runner/work/monorepo/monorepo
> pnpm run --filter "@inversifyjs/container-benchmarks" benchmarks:run:esm
> @inversifyjs/container-benchmarks@ benchmarks:run:esm /home/runner/work/monorepo/monorepo/packages/container/tools/container-benchmarks
> ./bin/run-esm.mjs
[ESM] Running benchmarks...
Get service in singleton scope
┌─────────┬────────────────────┬──────────────────┬──────────────────┬────────────────────────┬────────────────────────┬─────────┐
│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │
├─────────┼────────────────────┼──────────────────┼──────────────────┼────────────────────────┼────────────────────────┼─────────┤
│ 0 │ 'inversifyCurrent' │ '251.66 ± 1.04%' │ '240.00 ± 10.00' │ '4098417 ± 0.01%' │ '4166667 ± 166667' │ 3973545 │
│ 1 │ 'inversify6' │ '904.08 ± 3.48%' │ '821.00 ± 10.00' │ '1201395 ± 0.01%' │ '1218027 ± 15019' │ 1106101 │
│ 2 │ 'NestJS' │ '300.62 ± 0.43%' │ '281.00 ± 1.00' │ '3488055 ± 0.01%' │ '3558719 ± 12710' │ 3326513 │
│ 3 │ 'tsyringe' │ '295.90 ± 1.61%' │ '270.00 ± 10.00' │ '3679693 ± 0.01%' │ '3703704 ± 132275' │ 3379472 │
└─────────┴────────────────────┴──────────────────┴──────────────────┴────────────────────────┴────────────────────────┴─────────┘
inversifyCurrent vs inversify6 Speedup: 3.411x
inversifyCurrent vs NestJS Speedup: 1.175x
inversifyCurrent vs tsyringe Speedup: 1.114x
Get service in transient scope
┌─────────┬────────────────────┬──────────────────┬───────────────────┬────────────────────────┬────────────────────────┬─────────┐
│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │
├─────────┼────────────────────┼──────────────────┼───────────────────┼────────────────────────┼────────────────────────┼─────────┤
│ 0 │ 'inversifyCurrent' │ '513.68 ± 0.28%' │ '491.00 ± 10.00' │ '2007882 ± 0.01%' │ '2036660 ± 40652' │ 1946752 │
│ 1 │ 'inversify6' │ '5026.8 ± 3.85%' │ '4659.0 ± 50.00' │ '211689 ± 0.03%' │ '214638 ± 2328' │ 198933 │
│ 2 │ 'NestJS' │ '8859.3 ± 1.40%' │ '7775.0 ± 151.00' │ '125818 ± 0.06%' │ '128617 ± 2547' │ 112876 │
│ 3 │ 'tsyringe' │ '492.25 ± 0.50%' │ '461.00 ± 10.00' │ '2140261 ± 0.01%' │ '2169197 ± 46055' │ 2031487 │
└─────────┴────────────────────┴──────────────────┴───────────────────┴────────────────────────┴────────────────────────┴─────────┘
inversifyCurrent vs inversify6 Speedup: 9.485x
inversifyCurrent vs NestJS Speedup: 15.959x
inversifyCurrent vs tsyringe Speedup: 0.938x
Get complex service in singleton scope
┌─────────┬────────────────────┬──────────────────┬──────────────────┬────────────────────────┬────────────────────────┬─────────┐
│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │
├─────────┼────────────────────┼──────────────────┼──────────────────┼────────────────────────┼────────────────────────┼─────────┤
│ 0 │ 'inversifyCurrent' │ '268.79 ± 1.57%' │ '260.00 ± 10.00' │ '3825945 ± 0.01%' │ '3846154 ± 142450' │ 3720377 │
│ 1 │ 'inversify6' │ '927.94 ± 3.23%' │ '841.00 ± 11.00' │ '1177106 ± 0.01%' │ '1189061 ± 15352' │ 1077662 │
│ 2 │ 'NestJS' │ '337.24 ± 2.89%' │ '301.00 ± 9.00' │ '3251018 ± 0.01%' │ '3322259 ± 96453' │ 2965286 │
│ 3 │ 'tsyringe' │ '318.80 ± 4.20%' │ '290.00 ± 9.00' │ '3405000 ± 0.01%' │ '3448276 ± 110443' │ 3137078 │
└─────────┴────────────────────┴──────────────────┴──────────────────┴────────────────────────┴────────────────────────┴─────────┘
inversifyCurrent vs inversify6 Speedup: 3.250x
inversifyCurrent vs NestJS Speedup: 1.177x
inversifyCurrent vs tsyringe Speedup: 1.124x
Get complex service in transient scope
┌─────────┬────────────────────┬───────────────────┬───────────────────────┬────────────────────────┬────────────────────────┬─────────┐
│ (index) │ Task name │ Latency avg (ns) │ Latency med (ns) │ Throughput avg (ops/s) │ Throughput med (ops/s) │ Samples │
├─────────┼────────────────────┼───────────────────┼───────────────────────┼────────────────────────┼────────────────────────┼─────────┤
│ 0 │ 'inversifyCurrent' │ '248748 ± 0.68%' │ '237252 ± 2335.00' │ '4103 ± 0.31%' │ '4215 ± 42' │ 4021 │
│ 1 │ 'inversify6' │ '4775251 ± 1.14%' │ '4611617 ± 303766.00' │ '211 ± 1.12%' │ '217 ± 15' │ 210 │
│ 2 │ 'NestJS' │ '58999 ± 1.25%' │ '53460 ± 661.00' │ '18276 ± 0.15%' │ '18706 ± 232' │ 16950 │
│ 3 │ 'tsyringe' │ '254648 ± 0.60%' │ '243914 ± 1502.00' │ '3998 ± 0.30%' │ '4100 ± 25' │ 3927 │
└─────────┴────────────────────┴───────────────────┴───────────────────────┴────────────────────────┴────────────────────────┴─────────┘
inversifyCurrent vs inversify6 Speedup: 19.460x
inversifyCurrent vs NestJS Speedup: 0.225x
inversifyCurrent vs tsyringe Speedup: 1.026x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changed
test:uncommitted
with^build
dependency.