michaelherold / benchmark-memory

Memory profiling benchmark style, for Ruby 2.1+
MIT License
217 stars 6 forks source link

Start measuring GC pressure #1

Open michaelherold opened 8 years ago

michaelherold commented 8 years ago

Total memory usage can't show the whole picture, so we should measure GC pressure as well. At the very least, we want to know how much time is spent in garbage collection during a benchmark so we can compare that with the amount of memory allocated and retained.

I'm not sure what information is available in the built-in Ruby profiling tools. I know GC.stat shows some detailed information about the garbage collector. There's also GC::Profiler but I haven't dug in enough to figure out what's useful there.