• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

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

用户头像
it1352
帮助1

问题说明

我正在使用 IronRuby 0.9.1 和 cucumber 0.4.0.我还安装了 MRI 1.8.

I'm using IronRuby 0.9.1 and cucumber 0.4.0. I also have MRI 1.8 installed.

我创建了以下包装脚本 (icucumber.bat) 来在 IronRuby 上运行 cucumber

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:
ubylib
ubygems1.8
@"C:ironrubyinir.exe" "c:
ubyincucumber" %* 

导航到 cucumber-0.4.0examplesi18nen 并运行:

Navigating to cucumber-0.4.0examplesi18nen and running:

cucumber features  // takes about 4 seconds to complete
icucumber features // takes about 30 seconds to complete

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

Cucumber on IR is MUCH slower to initialize, so it seems. Is this typical? Or did I set this up incorrectly?

正确答案

#1

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

谢伊.

这篇好文章是转载于:编程之路

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 编程之路
  • 本文地址: /reply/detail/tanhchcbhk
系列文章
更多 icon
同类精品
更多 icon
继续加载