【问题标题】:Cucumber on IronRuby incredibly slow to start?IronRuby 上的 Cucumber 启动速度非常慢?
【发布时间】:2009-10-13 20:29:34
【问题描述】:

我正在使用 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

IR 上的 Cucumber 初始化速度要慢得多,所以看起来。这是典型的吗?还是我设置不正确?

【问题讨论】:

    标签: performance cucumber ironruby


    【解决方案1】:

    对我来说,启动黄瓜大约需要 10 秒。 IronRuby 的启动时间目前存在问题,但团队正在努力解决这个问题。 IronRuby 在启动后的运行速度比 MRI 快得多(有人说是 MRI 的两倍!)。

    谢伊。

    【讨论】:

      【解决方案2】:

      我们也经历过同样的行为。这可能与 IronRuby 中的一个错误有关,因为据我所知,以前的版本更快。

      部分是因为这个问题,也是因为others,比如构建集成问题,我们推出了一个开源项目SpecFlow,旨在为.NET 用户提供更好的黄瓜体验。

      【讨论】:

        【解决方案3】:

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

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

        cd [ironruby bin 目录] 对于 (*.dll) 中的 %i,请执行 C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe %i C:\Windows\Microsoft.NET\Framework\v2.0.50727\ngen.exe ir.exe

        【讨论】:

          猜你喜欢
          • 2014-12-01
          • 2011-08-16
          • 1970-01-01
          • 1970-01-01
          • 2015-10-31
          • 2016-05-21
          • 2021-12-04
          • 1970-01-01
          • 2012-02-25
          相关资源
          最近更新 更多