Benchmarking Ruby's `method_missing` vs `define_method`
Optimizing slow codebases starts by focusing on low-hanging fruits, but facts are more than recommended to justify any sort of change. So I went ahead and benchmarked/graphed the performances of method_missing and define_method.
Comments
Looks like your link is broken, Frank :)
http://is missing in the linkFirst off, thank you, Frank! Second, here’s a link that works franck.verrot.fr/blog/2015/07/12/benchmarking-ruby-method-missing-and-define-method/
I’ve fixed the post, although you can edit your own here as well :) Thanks!
Oops… thanks a lot Ruby friends for mentioning / fixing the link :-)
Post a comment