帮助缓慢的“耙黄瓜”
我一直在尝试调试运行黄瓜功能时一些超慢的性能。我已经通过 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
所以,我整个早上都在玩这个。事实证明,如果你这样做:
那确实需要永远运行。 (在我的笔记本电脑上大约 20 秒。)但是,显然:
在没有 Rake 开销的情况下运行得很好,运行时间大约为 8 秒。
So, I happen to have been playing around with this all morning. It turns out that if you do:
that does indeed take forever to run. (About 20 secs on my laptop.) But, apparently:
runs just fine w/out the overhead of Rake and it runs in about 8 secs.
我不确定是什么让黄瓜运行缓慢。作为一种可能的解决方法,您可以考虑使用 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.