You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The summary reports whether the loading indicator should be visible, how many widget loads are active, and which widgets currently block dependent UI state.
Copy file name to clipboardExpand all lines: docs/guides/benchmark-results.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ The latest measured timings below were captured on Windows 11, Intel Core i9-149
15
15
| Abstract Factory | Execution | 750.189 ns | 6,200 B | 735.733 ns | 6,200 B | Same allocation; generated was slightly faster for login widget creation. |
16
16
| Adapter | Construction | 34.668 ns | 320 B | 3.607 ns | 24 B | Generated adapter construction was materially faster and allocated less. |
17
17
| Adapter | Execution | 59.084 ns | 416 B | 20.479 ns | 80 B | Generated adapter execution was faster and allocated less for shipment adaptation. |
18
+
| Activity Tracker | Construction | 13.09 ns | 152 B | 12.98 ns | 152 B | Same allocation; generated was slightly faster in this microbenchmark. |
19
+
| Activity Tracker | Execution | 446.88 ns | 1,656 B | 452.36 ns | 1,656 B | Same allocation; fluent was slightly faster for dashboard loading gates. |
18
20
| Aggregator | Construction | 14.562 ns | 168 B | 15.235 ns | 168 B | Same allocation; fluent was slightly faster in this microbenchmark. |
19
21
| Aggregator | Execution | 188.000 ns | 1,088 B | 200.564 ns | 1,088 B | Same allocation; fluent was faster for order line aggregation. |
20
22
| Ambassador | Construction | 55.42 ns | 448 B | 48.03 ns | 360 B | Generated reduced construction time and allocation in this microbenchmark. |
@@ -204,25 +206,26 @@ The latest measured timings below were captured on Windows 11, Intel Core i9-149
204
206
205
207
## Coverage Matrix Summary
206
208
207
-
The coverage matrix currently publishes 93 catalog patterns and 372 pattern route results. Each pattern has four BenchmarkDotNet routes: fluent construction, fluent execution, source-generated construction, and source-generated execution.
209
+
The coverage matrix currently publishes 94 catalog patterns and 376 pattern route results. Each pattern has four BenchmarkDotNet routes: fluent construction, fluent execution, source-generated construction, and source-generated execution.
208
210
209
211
| Category | Patterns | Published route results |
210
212
| --- | ---: | ---: |
211
-
| Application Architecture |15|60|
213
+
| Application Architecture |16|64|
212
214
| Behavioral | 11 | 44 |
213
215
| Cloud Architecture | 17 | 68 |
214
216
| Creational | 5 | 20 |
215
217
| Enterprise Integration | 34 | 136 |
216
218
| Messaging Reliability | 3 | 12 |
217
219
| Structural | 7 | 28 |
218
220
219
-
The generator matrix currently publishes 89 generator source route results.
221
+
The generator matrix currently publishes 90 generator source route results.
220
222
221
223
## Pattern Matrix Results
222
224
223
-
| Category | Pattern | Fluent construction | Fluent execution | Generated construction | Generated execution |
`ActivityTracker` models tracker-based gating for active work. A caller acquires an `ActivityLease` when work begins, and releases it by disposing the lease or completing the activity id. Dependent state is based only on whether any activities exist.
// Show the loading indicator or hold dependent work.
13
+
}
14
+
```
15
+
16
+
Use it for loading wheels, import gates, page readiness, background refresh coordination, and other workflows where work can enter or leave independently and the block state is `ActiveCount > 0`.
17
+
18
+
The source-generated path uses `[GenerateActivityTracker]` to produce a named tracker factory:
`DashboardActivityTrackerDemo` shows a production-oriented `IServiceCollection` registration that drives dashboard loading visibility from tracked widget loads. Import it with `AddDashboardActivityTrackerDemo()` or the aggregate `AddPatternKitExamples()` registration.
0 commit comments