Saturday, January 30, 2010

GC patched ruby for performance testing

The Guide for Rails performance testing has instructions for patching ruby to provide garbage collection statistics. The only problem is, the patch is against a ruby version that is 2 and a half years old and doesn't compile by default on my machine.

The patch doesn't apply cleanly against the latest ruby 1.8.7 (p249). I found a version of the patch on github and fixed it up to apply to 1.8.7. Here is my fixed up copy.

I downloaded ruby from here and applied my updated patch with "patch -p1" and it compiled fine and doesn't seem to have any problems. Of course this version of ruby is only for profiling.

Updated Feb 2, 2010
Sorry to disappoint, but when I finished the patching the rails performance tests still wouldn't give me memory metrics. Back to the drawing board. I'll update this when I get a better patch.

No comments: