From: Ryan Davis Date: 2010-12-07T21:05:42+09:00 Subject: [ruby-core:33620] Re: Initialization time On Dec 5, 2010, at 12:29 , SASADA Koichi wrote: > (2010/12/06 4:32), Luis Lavena wrote: >> I don't think the huge initialization time is YARV fault, but really a >> slower IO functionality of 1.9.2 >> >> Rails combined with any BDD tool like RSpec and Cucumber that needs to load >> the whole Rails environment on every run can be slow. >> >> Even more with every require several stat operations are performed over the >> $LOAD_PATH. > > Do you know the application I can access? Quick and dirty profiling could be had via: gem install rails rails profiling cd profiling ruby19 ./script/runner -e 0 (-e 0 may need to be changed to an empty script instead) This may have to be changed to be compatible with rails 3 if you go with that version... But it should be painful enough in both rails 2 or 3. Last time I profiled it, rails 2 (low ... 2.1 or 2.2 or so) had > 500 requires just for startup.