Commit 846e343
committed
Remove non-beneficial optimisations, consolidate benchmarks
Remove three optimisations that showed no measurable benefit in realistic
benchmarks:
- Cleanup workers (cw1+): parallel async cleanup showed no improvement
- BRC sharding: added overhead without measurable benefit
- Fast decref (Py_BRC_FAST_DECREF): no benefit in realistic workloads
Keep parallel GC scanning which provides proven benefits:
- ~4-12% throughput improvement on realistic workloads
- ~70-75% reduction in STW pause time
Consolidate four benchmark files into single gc_perf_benchmark.py:
- Focuses on realistic pyperformance-style workloads
- Reports best/mean/worst with clear +/- percentages
- Optional synthetic stress tests (--include-synthetic)
- Markdown output by default, JSON optional
Net change: -3000 lines of code1 parent 80e8aa6 commit 846e343
16 files changed
Lines changed: 1082 additions & 4076 deletions
File tree
- Include/internal
- Lib/test
- Modules
- clinic
- Objects
- Python
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 18 | | |
29 | 19 | | |
30 | 20 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 21 | + | |
54 | 22 | | |
55 | 23 | | |
56 | 24 | | |
| |||
59 | 27 | | |
60 | 28 | | |
61 | 29 | | |
62 | | - | |
63 | | - | |
64 | 30 | | |
65 | 31 | | |
66 | 32 | | |
67 | 33 | | |
68 | 34 | | |
69 | 35 | | |
70 | 36 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 37 | + | |
96 | 38 | | |
97 | 39 | | |
98 | 40 | | |
| |||
107 | 49 | | |
108 | 50 | | |
109 | 51 | | |
110 | | - | |
111 | | - | |
112 | 52 | | |
113 | 53 | | |
114 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
| |||
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 195 | | |
204 | 196 | | |
205 | 197 | | |
| |||
235 | 227 | | |
236 | 228 | | |
237 | 229 | | |
238 | | - | |
239 | 230 | | |
240 | 231 | | |
241 | 232 | | |
| |||
345 | 336 | | |
346 | 337 | | |
347 | 338 | | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | 339 | | |
360 | 340 | | |
361 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | | - | |
268 | 266 | | |
269 | 267 | | |
270 | 268 | | |
| |||
0 commit comments