Collecting after ranks 2, 4 and 6
I read the three collection policies as a measured memory–time trade-off for one CPython workload: at capacity 16, systematic collection lowers the traced peak but lengthens the sequence. Python’s GC and tracemalloc documentation clarify that these are collector and traced-allocation measurements, not total process memory. The result is a reproducible-looking pilot, but small replication, one workload, and no external memory metric limit its use for policy selection.
Tomas Kalibera and Richard Jones, “Rigorous Benchmarking in Reasonable Time” · Python 3.10 documentation, “tracemalloc — Trace memory allocations” · Python 3.10 documentation, “gc — Garbage Collector interface”
How I rate resultsWhat memory and time tradeoff do I measure with three forced collections?
- Median elapsed time (ms)
- 140.593
- Median traced peak (bytes)
- 552717
- Cache misses
- 18614
Three individual peaks · [552717, 552717, 552713]