Skip to content

refactor: cleanup coroutine scopes#500

Draft
stuebingerb wants to merge 1 commit intomainfrom
refactor/better-coroutine-scope
Draft

refactor: cleanup coroutine scopes#500
stuebingerb wants to merge 1 commit intomainfrom
refactor/better-coroutine-scope

Conversation

@stuebingerb
Copy link
Owner

Remove coroutineContext from execution context and use one with the provided dispatcher.

@codecov
Copy link

codecov bot commented Jan 17, 2026

Codecov Report

❌ Patch coverage is 94.28571% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.65%. Comparing base (5fd5503) to head (8e4332d).

Files with missing lines Patch % Lines
...raphql/schema/execution/ParallelRequestExecutor.kt 93.75% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #500      +/-   ##
==========================================
- Coverage   83.66%   83.65%   -0.01%     
==========================================
  Files         152      152              
  Lines        4896     4894       -2     
  Branches      853      853              
==========================================
- Hits         4096     4094       -2     
  Misses        498      498              
  Partials      302      302              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Jan 17, 2026

🐰 Bencher Report

Branchrefactor/better-coroutine-scope
Testbedubuntu-latest

🚨 1 Alert

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Lower Boundary
(Limit %)
com.apurebase.kgraphql.RequestCachingBenchmark.invalidRequestThroughput
operations / second (ops/s) x 1e3
📈 plot
🚷 threshold
🚨 alert (🔔)
35.42 ops/s x 1e3
(-83.92%)Baseline: 220.31 ops/s x 1e3
126.24 ops/s x 1e3
(356.41%)

Click to view all benchmark results
BenchmarkLatencyBenchmark Result
milliseconds (ms)
(Result Δ%)
Upper Boundary
milliseconds (ms)
(Limit %)
ThroughputBenchmark Result
operations / second (ops/s)
(Result Δ%)
Lower Boundary
operations / second (ops/s)
(Limit %)
com.apurebase.kgraphql.FunctionExecutionBenchmark.benchmarkFunctionExecution📈 view plot
🚷 view threshold
6,078,408.66 ops/s
(+1.69%)Baseline: 5,977,390.47 ops/s
5,507,281.10 ops/s
(90.60%)
com.apurebase.kgraphql.ParallelExecutionBenchmark.queryBenchmark📈 view plot
🚷 view threshold
768.99 ms
(-0.21%)Baseline: 770.63 ms
772.70 ms
(99.52%)
com.apurebase.kgraphql.QueryBenchmark.largeList📈 view plot
🚷 view threshold
4.42 ops/s
(+51.59%)Baseline: 2.92 ops/s
-4.54 ops/s
(-102.79%)
com.apurebase.kgraphql.QueryBenchmark.manyChildren📈 view plot
🚷 view threshold
159.60 ops/s
(-14.36%)Baseline: 186.36 ops/s
135.74 ops/s
(85.05%)
com.apurebase.kgraphql.QueryBenchmark.manyDataChildren📈 view plot
🚷 view threshold
8.80 ops/s
(-1.51%)Baseline: 8.93 ops/s
8.66 ops/s
(98.42%)
com.apurebase.kgraphql.QueryBenchmark.manyOperations📈 view plot
🚷 view threshold
257.23 ops/s
(-1.96%)Baseline: 262.37 ops/s
151.96 ops/s
(59.08%)
com.apurebase.kgraphql.QueryBenchmark.nestedObject📈 view plot
🚷 view threshold
8,809.67 ops/s
(+4.41%)Baseline: 8,437.38 ops/s
6,022.97 ops/s
(68.37%)
com.apurebase.kgraphql.RequestCachingBenchmark.invalidRequest📈 view plot
🚷 view threshold
🚨 view alert (🔔)
35,420.50 ops/s
(-83.92%)Baseline: 220,309.98 ops/s
126,242.23 ops/s
(356.41%)

com.apurebase.kgraphql.RequestCachingBenchmark.largeRequest📈 view plot
🚷 view threshold
8,563.10 ops/s
(+1.46%)Baseline: 8,439.89 ops/s
7,623.27 ops/s
(89.02%)
com.apurebase.kgraphql.RequestCachingBenchmark.smallRequest📈 view plot
🚷 view threshold
12,924.17 ops/s
(+2.00%)Baseline: 12,671.36 ops/s
11,155.95 ops/s
(86.32%)
com.apurebase.kgraphql.SimpleExecutionOverheadBenchmark.benchmark📈 view plot
🚷 view threshold
459,765.69 ops/s
(-2.18%)Baseline: 470,010.79 ops/s
455,828.82 ops/s
(99.14%)
🐰 View full continuous benchmarking report in Bencher

Base automatically changed from refactor/minor-enhancements to main January 19, 2026 09:28
@stuebingerb stuebingerb force-pushed the refactor/better-coroutine-scope branch from f44e1ee to fb92944 Compare January 19, 2026 10:23
@stuebingerb stuebingerb marked this pull request as draft January 25, 2026 09:34
@stuebingerb
Copy link
Owner Author

Performance regression needs further analysis

Remove coroutineContext from execution context and use one with the
provided dispatcher.
@stuebingerb stuebingerb force-pushed the refactor/better-coroutine-scope branch from fb92944 to 8e4332d Compare January 28, 2026 12:50
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.

1 participant