Atelier des rouesLab FR
Register/AT.EX24.06
Controlled experiment · AT.EX24.06

Measuring collection overhead

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I take the separate timing of eight explicit collections as a useful pilot result: the reported median collection time is about 8.73 ms, while query time alone is close with and without forced collection. Kalibera and Jones provide the closest methodological reference, recommending uncertainty estimates and experiment-sized replication. Three processes make this exploratory, not decisive; the result applies only to this interpreter, cache capacity, and query sequence.

Tomas Kalibera and Richard Jones, “Rigorous Benchmarking in Reasonable Time” · Python 3.10 documentation, “gc — Garbage Collector interface”

How I rate results

Assumptions

I launch three fresh interpreters per treatment with eight queries at vertex 16. I separately time setup, queries and explicit collector calls. I check all groups and cache miss counts.

Result

At capacity 16 I measure a median of 8.73 ms for eight explicit collections and 112.33 ms for the queries. With automatic collection alone the queries take 111.34 ms. Query times include any automatic collections.

Prior work

Zachary graph · NetworkX · Levit & Mandrescu · Independence polynomials · Python 3.10 · tracemalloc

Next question

I will test collection triggered by a measured memory budget.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.