From: "Iñaki Baz Castillo" Date: 2011-08-09T17:11:33+09:00 Subject: Re: Methods defined with module_eval are... faster? 2011/8/9 Chris White : > https://gist.github.com/1133353 > > Line for line, it's all exactly the same (okay with the exception of variable names). This breaks my theory that eval's behind the scenes generation did something unique with the code. Here's my results running it on Mac OSX 1.9.2-p290 source compile: > > M.kk: 1.056156873703003 > M.aa: 1.0313341617584229 > M.kk: 1.0313379764556885 > M.aa: 1.0262627601623535 > > In this case there's less and less of a difference. I'd almost go so far to say that it's just slight inaccuracies involved in benchmark timings, with the bytecode being the same and all. Good experiment ;) -- Iñaki Baz Castillo