IronRuby 上的 Cucumber 启动速度非常慢?

发布于 2024-08-07 20:51:48 字数 541 浏览 2 评论 0原文

我正在使用 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 技术交流群。

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

发布评论

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

评论(3

¢蛋碎的人ぎ生 2024-08-14 20:51:49

对我来说,启动黄瓜大约需要 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.

当爱已成负担 2024-08-14 20:51:49

我们也经历过同样的行为。这可能与 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.

以为你会在 2024-08-14 20:51:49

如果您生成 IronRuby 程序集,这会很有帮助。

每当我安装新版本的 IronRuby 时,我总是在命令提示符中运行以下命令:

cd [the ironruby bin dir]
for %i in (*.dll) do C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe %i
C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe ir.exe

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:

cd [the ironruby bin dir]
for %i in (*.dll) do C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe %i
C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe ir.exe
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文