帮助缓慢的“耙黄瓜”

发布于 2024-08-30 14:22:57 字数 331 浏览 4 评论 0原文

我一直在尝试调试运行黄瓜功能时一些超慢的性能。我已经通过 ruby​​-prof 运行了各种调用,并且认为我看到了瓶颈(不太熟悉使用 ruby​​-prof),但不知道原因或更重要的解决方案。我在下面包含了运行 rake cucumber 的输出。

http://dl.dropbox.com/u/1788885/rake_cucumber.txt

有谁知道为什么会发生这种情况或者我如何进一步调试它?

谢谢, 埃里克

I've been trying to debug some super slow performance in running my cucumber features. I've run various calls through ruby-prof and think I see the bottlenecks (not too familiar with using ruby-prof) but do not know the cause or more important the solution. I've include below the output from running rake cucumber.

http://dl.dropbox.com/u/1788885/rake_cucumber.txt

Does anyone have any idea why this is happening or how I could go about debugging it further?

Thanks,
Eric

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

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

发布评论

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

评论(2

过期以后 2024-09-06 14:22:57

所以,我整个早上都在玩这个。事实证明,如果你这样做:

rake cucumber

那确实需要永远运行。 (在我的笔记本电脑上大约 20 秒。)但是,显然:

cucumber

在没有 Rake 开销的情况下运行得很好,运行时间大约为 8 秒。

So, I happen to have been playing around with this all morning. It turns out that if you do:

rake cucumber

that does indeed take forever to run. (About 20 secs on my laptop.) But, apparently:

cucumber

runs just fine w/out the overhead of Rake and it runs in about 8 secs.

御弟哥哥 2024-09-06 14:22:57

我不确定是什么让黄瓜运行缓慢。作为一种可能的解决方法,您可以考虑使用 spork。在我的 Windows 7 上网本上,仅运行一项 Cucumber 测试,使用 Spork 的时间就从大约 7 分钟缩短到了 10 秒。

I'm not sure of what might be making cucumber run slowly for you. As a possible work around, you could considering using spork. On my Windows 7 netbook, running just one cucumber test went from around 7 minutes to 10 seconds with spork.

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