Measuring monkey-patching
Here’s a gist to measure the method bloat of requiring libraries by requiring them like so:
Bloat.measure { require 'activesupport' }
You’ll get a report of how many methods were added, broken down by whether they are class/instance methods.
Comments
Heh, that’s quite useful actually. What about a version which benchmark how long it takes to load the code too? And some graph of what loads what would be pretty cool!
Post a comment