黄瓜在IronRuby难以置信地开始慢? [英] Cucumber on IronRuby incredibly slow to start?

查看:121
本文介绍了黄瓜在IronRuby难以置信地开始慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用IronRuby 0.9.1和黄瓜0.4.0。我已经安装了MRI 1.8。



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

  @ECHO OFF 
REM这是告诉IronRuby在哪里找到宝石。
SET GEM_PATH = c:\ruby\lib\ruby\gems\1.8
@C:\ironruby\bin\ir.exec:\ruby \bin\cucumber%*

浏览cucumber-0.4.0 \examples\ i18n \en和正在运行:

 黄瓜功能//大约需要4秒钟完成
icucumber功能//大约30秒完成

Cucumber on IR比初始化慢得多,所以似乎。这是典型吗?

解决方案

对我来说,启动黄瓜大约需要10秒钟。
启动时间目前在IronRuby有问题,但是团队正在努力。你可以感到舒适的事实,IronRuby,它开始后,工作比MRI快得多(有人说两倍快)。



Shay。 b $ b

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?

解决方案

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难以置信地开始慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆