@fjell/registry 4.4.11 → 4.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION_SUMMARY.md +200 -0
- package/docs/docs.config.ts +110 -0
- package/docs/package.json +2 -4
- package/docs/public/api.md +527 -0
- package/docs/public/package.json +1 -1
- package/docs/src/main.tsx +4 -2
- package/docs/src/types.d.ts +10 -0
- package/package.json +8 -7
- package/docs/memory-data/scaling-10-instances.json +0 -526
- package/docs/memory-data/scaling-100-instances.json +0 -526
- package/docs/memory-data/scaling-1000-instances.json +0 -276
- package/docs/memory-data/scaling-10000-instances.json +0 -126
- package/docs/memory-data/scaling-20-instances.json +0 -526
- package/docs/memory-data/scaling-200-instances.json +0 -526
- package/docs/memory-data/scaling-2000-instances.json +0 -276
- package/docs/memory-data/scaling-50-instances.json +0 -526
- package/docs/memory-data/scaling-500-instances.json +0 -276
- package/docs/memory-data/scaling-5000-instances.json +0 -126
- package/docs/memory-overhead.svg +0 -120
- package/docs/memory.md +0 -430
- package/docs/src/App.css +0 -1237
- package/docs/src/App.test.tsx +0 -50
- package/docs/src/App.tsx +0 -606
- package/docs/timing-range.svg +0 -172
- package/docs/timing.md +0 -483
- package/docs/tsconfig.node.json +0 -13
package/docs/memory.md
DELETED
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
# Registry Memory Consumption Analysis
|
|
2
|
-
|
|
3
|
-
> **Generated:** 2025-07-21T06:44:48.336Z
|
|
4
|
-
> **Version:** 4.4.10
|
|
5
|
-
> **Node.js:** v22.0.0
|
|
6
|
-
> **Test Environment:** darwin arm64
|
|
7
|
-
|
|
8
|
-
## Executive Summary
|
|
9
|
-
|
|
10
|
-
This document provides a comprehensive analysis of memory efficiency for the Fjell Registry library infrastructure. The tests focus on measuring memory overhead per registry instance to ensure optimal memory scaling and efficiency in production environments.
|
|
11
|
-
|
|
12
|
-
"Memory efficiency per instance" refers to the average amount of memory used by each registry instance, helping identify how memory usage scales as the number of instances increases.
|
|
13
|
-
|
|
14
|
-
## Memory Test Results
|
|
15
|
-
|
|
16
|
-
| Operation | Description | Memory Delta | Per Instance | Avg Time (ms) | Threshold | Status |
|
|
17
|
-
|-----------|-------------|--------------|--------------|---------------|-----------|--------|
|
|
18
|
-
| registryCreation | Memory overhead of creating a Registry instance | 107.76 kB | N/A | 0.002 | 195.31 kB | ✅ PASS |
|
|
19
|
-
| registryHubCreation | Memory overhead of creating a RegistryHub instance | 79.55 kB | N/A | 0.010 | 195.31 kB | ✅ PASS |
|
|
20
|
-
| coordinateCreation | Memory overhead of creating Coordinate instances | 112.55 kB | 1.13 kB | 0.002 | 585.94 kB | ✅ PASS |
|
|
21
|
-
| instanceCreation | Memory overhead of creating Instance objects | 158.21 kB | 1.58 kB | 0.003 | 390.63 kB | ✅ PASS |
|
|
22
|
-
| registryStorage | Memory growth when registering instances in registry | 305.50 kB | 3.06 kB | 0.010 | 390.63 kB | ✅ PASS |
|
|
23
|
-
| multiLevelTree | Memory overhead of multi-level instance tree structures | 215.14 kB | 4.30 kB | 0.072 | 585.94 kB | ✅ PASS |
|
|
24
|
-
| scopedInstances | Memory overhead of instances with multiple scopes | 315.16 kB | 3.15 kB | 0.007 | 976.56 kB | ✅ PASS |
|
|
25
|
-
| registryHubIntegration | Memory overhead of RegistryHub managing multiple registries | 284.06 kB | 2.84 kB | 0.009 | 2.29 MB | ✅ PASS |
|
|
26
|
-
|
|
27
|
-
## Memory Efficiency Scaling Analysis (Statistical)
|
|
28
|
-
|
|
29
|
-
### Per-Instance Memory Efficiency Results
|
|
30
|
-
|
|
31
|
-
| Instance Count | Iterations | Memory Per Instance (Avg ± StdDev) | Time (Avg ± StdDev) | Status |
|
|
32
|
-
|----------------|------------|-------------------------------------|---------------------|--------|
|
|
33
|
-
| 10 | 50 | 2.73 kB ± 2.23 kB | 0.07 ± 0.28 ms | ✅ PASS |
|
|
34
|
-
| 20 | 50 | 2.71 kB ± 2.02 kB | 0.11 ± 0.26 ms | ✅ PASS |
|
|
35
|
-
| 50 | 50 | 2.37 kB ± 1.99 kB | 0.23 ± 0.54 ms | ✅ PASS |
|
|
36
|
-
| 100 | 50 | 2.17 kB ± 1.71 kB | 0.28 ± 0.50 ms | ✅ PASS |
|
|
37
|
-
| 200 | 50 | 2.28 kB ± 2.25 kB | 1.67 ± 4.01 ms | ✅ PASS |
|
|
38
|
-
| 500 | 25 | 2.00 kB ± 1.43 kB | 1.95 ± 3.56 ms | ✅ PASS |
|
|
39
|
-
| 1,000 | 25 | 2.03 kB ± 1.73 kB | 2.81 ± 3.29 ms | ✅ PASS |
|
|
40
|
-
| 2,000 | 25 | 1.86 kB ± 1.39 kB | 9.25 ± 6.91 ms | ✅ PASS |
|
|
41
|
-
| 5,000 | 10 | 1.80 kB ± 1.41 kB | 14.91 ± 14.12 ms | ✅ PASS |
|
|
42
|
-
| 10,000 | 10 | 1.76 kB ± 897 B | 18.79 ± 2.66 ms | ✅ PASS |
|
|
43
|
-
|
|
44
|
-
### Detailed Statistical Analysis
|
|
45
|
-
|
|
46
|
-
#### 10 Instances (50 iterations)
|
|
47
|
-
|
|
48
|
-
**Memory Per Instance:**
|
|
49
|
-
- Average: 2.73 kB
|
|
50
|
-
- Range: 200 B - 14.25 kB
|
|
51
|
-
- Standard Deviation: 2.23 kB
|
|
52
|
-
|
|
53
|
-
**Creation Time:**
|
|
54
|
-
- Average: 0.07 ms
|
|
55
|
-
- Range: 0.01 - 2.00 ms
|
|
56
|
-
- Standard Deviation: 0.28 ms
|
|
57
|
-
|
|
58
|
-
#### 20 Instances (50 iterations)
|
|
59
|
-
|
|
60
|
-
**Memory Per Instance:**
|
|
61
|
-
- Average: 2.71 kB
|
|
62
|
-
- Range: 200 B - 11.49 kB
|
|
63
|
-
- Standard Deviation: 2.02 kB
|
|
64
|
-
|
|
65
|
-
**Creation Time:**
|
|
66
|
-
- Average: 0.11 ms
|
|
67
|
-
- Range: 0.05 - 1.90 ms
|
|
68
|
-
- Standard Deviation: 0.26 ms
|
|
69
|
-
|
|
70
|
-
#### 50 Instances (50 iterations)
|
|
71
|
-
|
|
72
|
-
**Memory Per Instance:**
|
|
73
|
-
- Average: 2.37 kB
|
|
74
|
-
- Range: 200 B - 10.96 kB
|
|
75
|
-
- Standard Deviation: 1.99 kB
|
|
76
|
-
|
|
77
|
-
**Creation Time:**
|
|
78
|
-
- Average: 0.23 ms
|
|
79
|
-
- Range: 0.05 - 3.83 ms
|
|
80
|
-
- Standard Deviation: 0.54 ms
|
|
81
|
-
|
|
82
|
-
#### 100 Instances (50 iterations)
|
|
83
|
-
|
|
84
|
-
**Memory Per Instance:**
|
|
85
|
-
- Average: 2.17 kB
|
|
86
|
-
- Range: 200 B - 10.54 kB
|
|
87
|
-
- Standard Deviation: 1.71 kB
|
|
88
|
-
|
|
89
|
-
**Creation Time:**
|
|
90
|
-
- Average: 0.28 ms
|
|
91
|
-
- Range: 0.08 - 2.96 ms
|
|
92
|
-
- Standard Deviation: 0.50 ms
|
|
93
|
-
|
|
94
|
-
#### 200 Instances (50 iterations)
|
|
95
|
-
|
|
96
|
-
**Memory Per Instance:**
|
|
97
|
-
- Average: 2.28 kB
|
|
98
|
-
- Range: 200 B - 11.65 kB
|
|
99
|
-
- Standard Deviation: 2.25 kB
|
|
100
|
-
|
|
101
|
-
**Creation Time:**
|
|
102
|
-
- Average: 1.67 ms
|
|
103
|
-
- Range: 0.17 - 25.45 ms
|
|
104
|
-
- Standard Deviation: 4.01 ms
|
|
105
|
-
|
|
106
|
-
#### 500 Instances (25 iterations)
|
|
107
|
-
|
|
108
|
-
**Memory Per Instance:**
|
|
109
|
-
- Average: 2.00 kB
|
|
110
|
-
- Range: 200 B - 7.61 kB
|
|
111
|
-
- Standard Deviation: 1.43 kB
|
|
112
|
-
|
|
113
|
-
**Creation Time:**
|
|
114
|
-
- Average: 1.95 ms
|
|
115
|
-
- Range: 0.40 - 15.64 ms
|
|
116
|
-
- Standard Deviation: 3.56 ms
|
|
117
|
-
|
|
118
|
-
#### 1,000 Instances (25 iterations)
|
|
119
|
-
|
|
120
|
-
**Memory Per Instance:**
|
|
121
|
-
- Average: 2.03 kB
|
|
122
|
-
- Range: 200 B - 7.61 kB
|
|
123
|
-
- Standard Deviation: 1.73 kB
|
|
124
|
-
|
|
125
|
-
**Creation Time:**
|
|
126
|
-
- Average: 2.81 ms
|
|
127
|
-
- Range: 0.88 - 15.17 ms
|
|
128
|
-
- Standard Deviation: 3.29 ms
|
|
129
|
-
|
|
130
|
-
#### 2,000 Instances (25 iterations)
|
|
131
|
-
|
|
132
|
-
**Memory Per Instance:**
|
|
133
|
-
- Average: 1.86 kB
|
|
134
|
-
- Range: 492 B - 5.84 kB
|
|
135
|
-
- Standard Deviation: 1.39 kB
|
|
136
|
-
|
|
137
|
-
**Creation Time:**
|
|
138
|
-
- Average: 9.25 ms
|
|
139
|
-
- Range: 1.92 - 36.19 ms
|
|
140
|
-
- Standard Deviation: 6.91 ms
|
|
141
|
-
|
|
142
|
-
#### 5,000 Instances (10 iterations)
|
|
143
|
-
|
|
144
|
-
**Memory Per Instance:**
|
|
145
|
-
- Average: 1.80 kB
|
|
146
|
-
- Range: 200 B - 4.66 kB
|
|
147
|
-
- Standard Deviation: 1.41 kB
|
|
148
|
-
|
|
149
|
-
**Creation Time:**
|
|
150
|
-
- Average: 14.91 ms
|
|
151
|
-
- Range: 4.73 - 55.96 ms
|
|
152
|
-
- Standard Deviation: 14.12 ms
|
|
153
|
-
|
|
154
|
-
#### 10,000 Instances (10 iterations)
|
|
155
|
-
|
|
156
|
-
**Memory Per Instance:**
|
|
157
|
-
- Average: 1.76 kB
|
|
158
|
-
- Range: 1.28 kB - 3.61 kB
|
|
159
|
-
- Standard Deviation: 897 B
|
|
160
|
-
|
|
161
|
-
**Creation Time:**
|
|
162
|
-
- Average: 18.79 ms
|
|
163
|
-
- Range: 14.24 - 23.46 ms
|
|
164
|
-
- Standard Deviation: 2.66 ms
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
### Memory Efficiency Pattern (Statistical Summary)
|
|
168
|
-
|
|
169
|
-
The following data shows per-instance memory efficiency with confidence intervals:
|
|
170
|
-
|
|
171
|
-
```
|
|
172
|
-
Instance Count | Avg Per Instance | StdDev %
|
|
173
|
-
10 | 2.73 kB | 81.7%
|
|
174
|
-
20 | 2.71 kB | 74.5%
|
|
175
|
-
50 | 2.37 kB | 83.9%
|
|
176
|
-
100 | 2.17 kB | 79.0%
|
|
177
|
-
200 | 2.28 kB | 98.4%
|
|
178
|
-
500 | 2.00 kB | 71.4%
|
|
179
|
-
1000 | 2.03 kB | 85.6%
|
|
180
|
-
2000 | 1.86 kB | 74.9%
|
|
181
|
-
5000 | 1.80 kB | 78.3%
|
|
182
|
-
10000 | 1.76 kB | 49.8%
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
### Statistical Reliability
|
|
186
|
-
|
|
187
|
-
- **Sample Sizes**: 10: 50 iterations, 20: 50 iterations, 50: 50 iterations, 100: 50 iterations, 200: 50 iterations, 500: 25 iterations, 1000: 25 iterations, 2000: 25 iterations, 5000: 10 iterations, 10000: 10 iterations
|
|
188
|
-
- **Data Quality**: All measurements include statistical analysis with standard deviations
|
|
189
|
-
- **Outlier Detection**: Raw data files available in `./docs/memory-data/` for detailed analysis
|
|
190
|
-
- **Confidence**: Standard deviations indicate measurement reliability and consistency
|
|
191
|
-
|
|
192
|
-
### Scaling Characteristics (Statistical)
|
|
193
|
-
|
|
194
|
-
- **Per-Instance Memory Change**: -16.9% (2.17 kB → 1.80 kB)
|
|
195
|
-
- **Memory Efficiency**: Good
|
|
196
|
-
- **Per-Instance Consistency**: Excellent (< 1KB variation)
|
|
197
|
-
- **Statistical Confidence**: High (multiple iterations with standard deviation analysis)
|
|
198
|
-
|
|
199
|
-
## Detailed Memory Analysis
|
|
200
|
-
|
|
201
|
-
### registryCreation
|
|
202
|
-
|
|
203
|
-
**Description:** Memory overhead of creating a Registry instance
|
|
204
|
-
**Iterations:** 100
|
|
205
|
-
**Total Memory Delta:** 107.76 kB
|
|
206
|
-
**Memory Per Instance:** N/A
|
|
207
|
-
**Average Time:** 0.002 ms
|
|
208
|
-
|
|
209
|
-
**Memory Breakdown:**
|
|
210
|
-
- Heap Used: 107.76 kB
|
|
211
|
-
- Heap Total: 0 B
|
|
212
|
-
- External: 40 B
|
|
213
|
-
- RSS: 0 B
|
|
214
|
-
|
|
215
|
-
**Memory Threshold:** 195.31 kB
|
|
216
|
-
**Time Threshold:** 1 ms
|
|
217
|
-
**Status:** ✅ PASS
|
|
218
|
-
|
|
219
|
-
### registryHubCreation
|
|
220
|
-
|
|
221
|
-
**Description:** Memory overhead of creating a RegistryHub instance
|
|
222
|
-
**Iterations:** 100
|
|
223
|
-
**Total Memory Delta:** 79.55 kB
|
|
224
|
-
**Memory Per Instance:** N/A
|
|
225
|
-
**Average Time:** 0.010 ms
|
|
226
|
-
|
|
227
|
-
**Memory Breakdown:**
|
|
228
|
-
- Heap Used: 79.55 kB
|
|
229
|
-
- Heap Total: 0 B
|
|
230
|
-
- External: 0 B
|
|
231
|
-
- RSS: 0 B
|
|
232
|
-
|
|
233
|
-
**Memory Threshold:** 195.31 kB
|
|
234
|
-
**Time Threshold:** 1.5 ms
|
|
235
|
-
**Status:** ✅ PASS
|
|
236
|
-
|
|
237
|
-
### coordinateCreation
|
|
238
|
-
|
|
239
|
-
**Description:** Memory overhead of creating Coordinate instances
|
|
240
|
-
**Iterations:** 100
|
|
241
|
-
**Total Memory Delta:** 112.55 kB
|
|
242
|
-
**Memory Per Instance:** 1.13 kB
|
|
243
|
-
**Average Time:** 0.002 ms
|
|
244
|
-
|
|
245
|
-
**Memory Breakdown:**
|
|
246
|
-
- Heap Used: 112.55 kB
|
|
247
|
-
- Heap Total: 0 B
|
|
248
|
-
- External: 0 B
|
|
249
|
-
- RSS: 0 B
|
|
250
|
-
|
|
251
|
-
**Memory Threshold:** 585.94 kB
|
|
252
|
-
**Time Threshold:** 0.5 ms
|
|
253
|
-
**Status:** ✅ PASS
|
|
254
|
-
|
|
255
|
-
### instanceCreation
|
|
256
|
-
|
|
257
|
-
**Description:** Memory overhead of creating Instance objects
|
|
258
|
-
**Iterations:** 100
|
|
259
|
-
**Total Memory Delta:** 158.21 kB
|
|
260
|
-
**Memory Per Instance:** 1.58 kB
|
|
261
|
-
**Average Time:** 0.003 ms
|
|
262
|
-
|
|
263
|
-
**Memory Breakdown:**
|
|
264
|
-
- Heap Used: 158.21 kB
|
|
265
|
-
- Heap Total: 0 B
|
|
266
|
-
- External: 0 B
|
|
267
|
-
- RSS: 0 B
|
|
268
|
-
|
|
269
|
-
**Memory Threshold:** 390.63 kB
|
|
270
|
-
**Time Threshold:** 1 ms
|
|
271
|
-
**Status:** ✅ PASS
|
|
272
|
-
|
|
273
|
-
### registryStorage
|
|
274
|
-
|
|
275
|
-
**Description:** Memory growth when registering instances in registry
|
|
276
|
-
**Iterations:** 100
|
|
277
|
-
**Total Memory Delta:** 305.50 kB
|
|
278
|
-
**Memory Per Instance:** 3.06 kB
|
|
279
|
-
**Average Time:** 0.010 ms
|
|
280
|
-
|
|
281
|
-
**Memory Breakdown:**
|
|
282
|
-
- Heap Used: 305.50 kB
|
|
283
|
-
- Heap Total: 0 B
|
|
284
|
-
- External: 0 B
|
|
285
|
-
- RSS: 0 B
|
|
286
|
-
|
|
287
|
-
**Memory Threshold:** 390.63 kB
|
|
288
|
-
**Time Threshold:** 1.5 ms
|
|
289
|
-
**Status:** ✅ PASS
|
|
290
|
-
|
|
291
|
-
### multiLevelTree
|
|
292
|
-
|
|
293
|
-
**Description:** Memory overhead of multi-level instance tree structures
|
|
294
|
-
**Iterations:** 50
|
|
295
|
-
**Total Memory Delta:** 215.14 kB
|
|
296
|
-
**Memory Per Instance:** 4.30 kB
|
|
297
|
-
**Average Time:** 0.072 ms
|
|
298
|
-
|
|
299
|
-
**Memory Breakdown:**
|
|
300
|
-
- Heap Used: 215.14 kB
|
|
301
|
-
- Heap Total: 0 B
|
|
302
|
-
- External: 0 B
|
|
303
|
-
- RSS: 0 B
|
|
304
|
-
|
|
305
|
-
**Memory Threshold:** 585.94 kB
|
|
306
|
-
**Time Threshold:** 2 ms
|
|
307
|
-
**Status:** ✅ PASS
|
|
308
|
-
|
|
309
|
-
### scopedInstances
|
|
310
|
-
|
|
311
|
-
**Description:** Memory overhead of instances with multiple scopes
|
|
312
|
-
**Iterations:** 100
|
|
313
|
-
**Total Memory Delta:** 315.16 kB
|
|
314
|
-
**Memory Per Instance:** 3.15 kB
|
|
315
|
-
**Average Time:** 0.007 ms
|
|
316
|
-
|
|
317
|
-
**Memory Breakdown:**
|
|
318
|
-
- Heap Used: 315.16 kB
|
|
319
|
-
- Heap Total: 256.00 kB
|
|
320
|
-
- External: 0 B
|
|
321
|
-
- RSS: 80.00 kB
|
|
322
|
-
|
|
323
|
-
**Memory Threshold:** 976.56 kB
|
|
324
|
-
**Time Threshold:** 2 ms
|
|
325
|
-
**Status:** ✅ PASS
|
|
326
|
-
|
|
327
|
-
### registryHubIntegration
|
|
328
|
-
|
|
329
|
-
**Description:** Memory overhead of RegistryHub managing multiple registries
|
|
330
|
-
**Iterations:** 20
|
|
331
|
-
**Total Memory Delta:** 284.06 kB
|
|
332
|
-
**Memory Per Instance:** 2.84 kB
|
|
333
|
-
**Average Time:** 0.009 ms
|
|
334
|
-
|
|
335
|
-
**Memory Breakdown:**
|
|
336
|
-
- Heap Used: 284.06 kB
|
|
337
|
-
- Heap Total: 0 B
|
|
338
|
-
- External: 0 B
|
|
339
|
-
- RSS: 0 B
|
|
340
|
-
|
|
341
|
-
**Memory Threshold:** 2.29 MB
|
|
342
|
-
**Time Threshold:** 5 ms
|
|
343
|
-
**Status:** ✅ PASS
|
|
344
|
-
|
|
345
|
-
## Memory Constraints
|
|
346
|
-
|
|
347
|
-
The following memory constraints are enforced to ensure optimal memory usage:
|
|
348
|
-
|
|
349
|
-
### Infrastructure Overhead
|
|
350
|
-
- **Registry Creation**: ≤ 195.31 kB
|
|
351
|
-
- **Registry Hub Creation**: ≤ 195.31 kB
|
|
352
|
-
- **Maximum Registry Overhead**: ≤ 117.19 kB
|
|
353
|
-
|
|
354
|
-
### Per-Instance Overhead
|
|
355
|
-
- **Instance Creation**: ≤ 3.91 kB per instance
|
|
356
|
-
- **Coordinate Creation**: ≤ 5.86 kB per coordinate
|
|
357
|
-
- **Instance Tree Node**: ≤ 3.91 kB per tree node
|
|
358
|
-
- **Maximum Memory Per Instance**: ≤ 7.81 kB
|
|
359
|
-
|
|
360
|
-
### Memory Efficiency Analysis
|
|
361
|
-
|
|
362
|
-
The memory efficiency analysis focuses on per-instance memory overhead and how it scales with the number of instances.
|
|
363
|
-
|
|
364
|
-
- **Registry Overhead Efficiency**: 44.8% under constraint limit
|
|
365
|
-
- **Per-Instance Efficiency**: 79.7% under constraint limit
|
|
366
|
-
|
|
367
|
-
## Performance Characteristics
|
|
368
|
-
|
|
369
|
-
### Memory Efficiency Scaling
|
|
370
|
-
- **Per-Instance Consistency**: Memory overhead per instance remains relatively constant as instance count increases
|
|
371
|
-
- **Statistical Validation**: Multiple iterations ensure reliable measurements of per-instance efficiency
|
|
372
|
-
- **Low Variance**: Small standard deviations indicate consistent per-instance memory usage
|
|
373
|
-
- **Predictable Efficiency**: Memory efficiency per instance is predictable and optimized
|
|
374
|
-
|
|
375
|
-
### Optimization Features
|
|
376
|
-
- **Efficient Data Structures**: Uses optimized tree structures for instance storage
|
|
377
|
-
- **Minimal Overhead**: Core registry infrastructure has very low memory footprint
|
|
378
|
-
- **Consistent Performance**: Statistical analysis shows reliable memory patterns
|
|
379
|
-
|
|
380
|
-
## Data Files
|
|
381
|
-
|
|
382
|
-
Raw measurement data is available in the following files:
|
|
383
|
-
- `./docs/memory-data/scaling-10-instances.json`
|
|
384
|
-
- `./docs/memory-data/scaling-20-instances.json`
|
|
385
|
-
- `./docs/memory-data/scaling-50-instances.json`
|
|
386
|
-
- `./docs/memory-data/scaling-100-instances.json`
|
|
387
|
-
- `./docs/memory-data/scaling-200-instances.json`
|
|
388
|
-
- `./docs/memory-data/scaling-500-instances.json`
|
|
389
|
-
- `./docs/memory-data/scaling-1000-instances.json`
|
|
390
|
-
- `./docs/memory-data/scaling-2000-instances.json`
|
|
391
|
-
- `./docs/memory-data/scaling-5000-instances.json`
|
|
392
|
-
- `./docs/memory-data/scaling-10000-instances.json`
|
|
393
|
-
|
|
394
|
-
These files contain all individual measurements, allowing for detailed statistical analysis and trend identification.
|
|
395
|
-
|
|
396
|
-
## Recommendations
|
|
397
|
-
|
|
398
|
-
### Memory Management
|
|
399
|
-
1. **Monitor Instance Count**: Keep track of total instances across all registries
|
|
400
|
-
2. **Statistical Analysis**: Use the statistical data to understand memory variance
|
|
401
|
-
3. **Trend Analysis**: Review raw data files to identify memory usage patterns
|
|
402
|
-
4. **Cleanup**: Ensure proper cleanup of unused instances and registries
|
|
403
|
-
|
|
404
|
-
### Performance Optimization
|
|
405
|
-
1. **Batch Operations**: Create instances in batches when possible
|
|
406
|
-
2. **Registry Reuse**: Reuse registries instead of creating new ones frequently
|
|
407
|
-
3. **Statistical Monitoring**: Use the statistical baselines to detect anomalies
|
|
408
|
-
4. **Constraint Monitoring**: Regularly run memory tests to ensure constraints are met
|
|
409
|
-
|
|
410
|
-
## Troubleshooting
|
|
411
|
-
|
|
412
|
-
### Memory Issues
|
|
413
|
-
If memory tests fail, consider:
|
|
414
|
-
|
|
415
|
-
1. **Statistical Significance**: Check if failures are consistent across multiple iterations
|
|
416
|
-
2. **Variance Analysis**: High standard deviations may indicate unstable conditions
|
|
417
|
-
3. **Raw Data Review**: Examine individual measurements in data files for patterns
|
|
418
|
-
4. **System Resources**: Ensure adequate system memory is available during testing
|
|
419
|
-
|
|
420
|
-
### Constraint Violations
|
|
421
|
-
If memory constraints are exceeded:
|
|
422
|
-
|
|
423
|
-
1. **Statistical Confidence**: Verify violations are consistent across iterations
|
|
424
|
-
2. **Trend Analysis**: Use historical data to identify if this is a regression
|
|
425
|
-
3. **Outlier Investigation**: Check raw measurements for outliers affecting averages
|
|
426
|
-
4. **Update Thresholds**: Consider updating constraints based on statistical analysis
|
|
427
|
-
|
|
428
|
-
---
|
|
429
|
-
|
|
430
|
-
*This document is automatically generated during memory testing and includes statistical analysis of multiple iterations. Raw data files are saved for detailed analysis.*
|