<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div>It does seem large, but because large Rails apps preload everything, that initial load's always going to take time. The killer would be if you've got something in your initializers that is executing some sort of blocking code and holding up the initialization for some reason.</div>
<div> </div>
<div>If you have a APM service running on production, that might be able to offer some startup analysis. Locally, you could also try something like Bumbler (<a href="https://github.com/nevir/Bumbler">https://github.com/nevir/Bumbler</a>) as a very high level, approximate, view of where your app's startup time is being spent.</div>
<div> </div>
<div>Unless that delay's causing you problems in production, I'd be inclined to focus on RSpec startup, which might be related (so could help generally). They could also be RSpec config-related; if your app preloads the `spec/support/` folder and it has a lot of configuration within, for example, that can cause issues.</div>
<div> </div>
<div>IMHO any time you spend speeding up your test suite loading time will massively increase your developer efficiency. </div>
<div> </div>
<div>Scott</div>
</div>
<div name="messageReplySection">On 6 Feb 2025 at 2:00 PM +0000, Edmond Lepedus <ed.lepedus@googlemail.com>, wrote:<br />
<blockquote type="cite">Hey LRUG,<br />
<br />
Can I get a feel as to whether a 2m30s boot time for a Rails app with ~550,000 LOC is reasonable? Rspec startup time is also >1m.<br />
<br />
Having mostly worked with other stacks, it feels excessive, but maybe my spidey-sense is warped?<br />
<br />
Please help!<br />
<br />
Thanks in advance,<br />
Ed<br />
_______________________________________________<br />
Chat mailing list<br />
Chat@lists.lrug.org<br />
Archives: http://lists.lrug.org/pipermail/chat-lrug.org<br />
Manage your subscription: http://lists.lrug.org/options.cgi/chat-lrug.org<br />
List info: http://lists.lrug.org/listinfo.cgi/chat-lrug.org<br /></blockquote>
</div>
</body>
</html>