简体   繁体   English

Rspec和捆绑执行

[英]Rspec and bundle exec

I ran into a performance issue with rspec. 我遇到了rspec的性能问题。 If I do rspec spec/* , it takes over 2 minutes to load all my tests (I only have about 100 tests). 如果我执行rspec spec/* ,则需要花费2分钟以上的时间来加载所有测试(我只有大约100个测试)。 But if I do bundle exec rspec spec/* , it takes less than 10 seconds to load. 但是,如果我bundle exec rspec spec/* ,则加载时间不到10秒。

I found this post here that says exactly the opposite. 我在这里发现的帖子恰恰相反。 Why does 'rspec spec' run faster and use less resources than 'bundle exec spec' 为什么“ rspec规范”比“ bundle exec规范”运行得更快并且使用更少的资源

Any bundlr experts out there know what's going on? 任何Bundlr专家都知道发生了什么事?

ps the project is a pure ruby project, so no rails magic here. ps该项目是一个纯红宝石项目,因此这里没有Rails Magic。

I think this discussion can be useful 我认为这个讨论会有用

Rspec execution speed footprint Rspec执行速度足迹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM