IronRuby 上的 Cucumber 启动速度非常慢?
我正在使用 IronRuby 0.9.1 和 Cucumber 0.4.0。我还安装了 MRI 1.8。
我创建了以下包装器脚本(icucumber.bat)来在 IronRuby 上运行 Cucumber
@ECHO OFF
REM This is to tell IronRuby where to find gems.
SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8
@"C:\ironruby\bin\ir.exe" "c:\ruby\bin\cucumber" %*
导航到 cucumber-0.4.0\examples\i18n\en 并运行:
cucumber features // takes about 4 seconds to complete
icucumber features // takes about 30 seconds to complete
Cucumber on IR 的初始化速度要慢得多,看起来如此。这是典型的吗?或者我设置不正确?
I'm using IronRuby 0.9.1 and cucumber 0.4.0. I also have MRI 1.8 installed.
I've created the following wrapper script (icucumber.bat) to run cucumber on IronRuby
@ECHO OFF
REM This is to tell IronRuby where to find gems.
SET GEM_PATH=c:\ruby\lib\ruby\gems\1.8
@"C:\ironruby\bin\ir.exe" "c:\ruby\bin\cucumber" %*
Navigating to cucumber-0.4.0\examples\i18n\en and running:
cucumber features // takes about 4 seconds to complete
icucumber features // takes about 30 seconds to complete
Cucumber on IR is MUCH slower to initialize, so it seems. Is this typical? Or did I set this up incorrectly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对我来说,启动黄瓜大约需要 10 秒。
目前,IronRuby 中的启动时间存在问题,但团队正在努力解决这个问题。您可以放心,IronRuby 在启动后的工作速度比 MRI 快得多(有人说快两倍!)。
谢伊。
For me it takes about 10 seconds to start cucumber.
Startup time is currently problematic in IronRuby but the team is working on it. You can find comfort in the fact that IronRuby, after it starts, works much faster than MRI (some say twice as fast!).
Shay.
我们也经历过同样的行为。这可能与 IronRuby 中的错误有关,因为据我所知,以前的版本速度更快。
部分是因为这个问题,也因为 其他< /a>,就像构建集成问题一样,我们启动了一个开源项目 SpecFlow,旨在提供为 .NET 用户提供更好的 Cucumber 体验。
We have experienced the same behavior. This is probably related to a bug in IronRuby, because as far as I've heard, it was faster with the previous versions.
Partly because of this problem, and also because of others, like the build integration issues we have launched an open-source project, SpecFlow, that aims to provide better cucumber experience for the .NET users.
如果您生成 IronRuby 程序集,这会很有帮助。
每当我安装新版本的 IronRuby 时,我总是在命令提示符中运行以下命令:
It helps a lot if you ngen the IronRuby assemblies.
Whenever I install a new version of IronRuby, I always run this in a command prompt: