The Puzzling Performance of Generational Garbage Collection

2025-02-09

The author conducted experiments to verify the performance benefits of generational garbage collection. Surprisingly, the results showed that generational garbage collection took longer than whole-heap garbage collection in various benchmarks. The article explores several potential causes, including write barrier overhead, nursery size selection, benchmark representativeness, and collection frequency. The author concludes that further investigation is needed to determine the root cause.

Development