force gc in benchmarks if possible