Snow Leopard 上的 ruby​​/rails/mysql 性能下降

发布于 2024-08-18 20:00:09 字数 396 浏览 1 评论 0原文

我为此花费了很多时间。我在构建东西时没有遇到问题,但我发现我的测试套件的运行速度比我在 OS X 10.5.x 上时慢了大约 2 倍。我花了很多时间尝试不同的优化设置(学习避免自制的 llvm-gcc 编译)。我刚刚了解到我需要调整 /Library/Preferences/SystemConfiguration/com.apple.Boot.plist 以使内核以 64 位模式启动。然而,即使在预热 mysql 服务器之后,我的 Rails 应用程序的运行速度仍然比以前慢一些。

那么我可能需要研究哪些性能调整?现在,在某些方面,库存 ruby​​ 1.8.7 的运行速度比 1.9.1 更快,我真的很想知道是否有什么我应该寻找的。我的所有开发软件都针对 x86_64、mysql 进行了 -O2 优化,使用常规 gcc(不是 llvm-gcc)进行编译。

I've burned a bunch of hours on this. I'm not having problems getting things to build, but I am seeing that my test suite runs about 2x slower than when I was on OS X 10.5.x . I've spent a lot of time playing around with different optimization settings (learning to avoid homebrew's llvm-gcc compilation). I've just learned that I needed to tweaks /Library/Preferences/SystemConfiguration/com.apple.Boot.plist in order to get the kernel to boot in 64 bit mode. However, my rails app is still running a bit slower than before, even after warming up the mysql server.

So what performance tweaks might i need to look into? Right now the stock ruby 1.8.7 runs faster than 1.9.1 for some things, and I'd really like to know if there is anything I should be looking for. All my dev software has been compiled for x86_64, mysql with -O2 optimization, using regular gcc (not llvm-gcc).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

开始看清了 2024-08-25 20:00:09

原来我很蠢。我在测试套件中添加/修改了几行,这消除了我担心的性能。

turned out i was being stupid. I'd added/modified a few lines in my test suite which killed the performance that I was concerned about.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文