IronRuby 上的 Cucumber 启动速度非常慢? [英] Cucumber on IronRuby incredibly slow to start?

查看:16
本文介绍了IronRuby 上的 Cucumber 启动速度非常慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

推荐答案

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

谢伊.

这篇关于IronRuby 上的 Cucumber 启动速度非常慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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