HomePhorge

maint: disable garbage collector during individual test cases.
78cb48cea0b1Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

maint: disable garbage collector during individual test cases.

This reduced overhead of garbage collection from 50 percent to 20 percent in
my test runs, and reduced wall-time to match. This seems to be a reasonable
win: we allow the GC to run on demand, but only outside the testing.

Memory use went from ~ 300MB to ~550MB between runs, which suggests that we
are generating a *lot* of garbage at times, but that we also benefit from
cleaning it automatically on a regular basis.

Reviewed-By: Matt Robinson <matt@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU87f4e0a1ce60: Merge branch 'ticket/next/maint-fix_tests_for_old_rubies' into next
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU78cb48cea0b1: maint: disable garbage collector during individual test cases. (authored by Daniel Pittman <daniel@puppetlabs.com>).Apr 9 2011, 12:17 AM