开发者

How to find how long my rake task is taking

开发者 https://www.devze.com 2023-04-05 09:10 出处:网络
I am using Rails 3.0.10 . I am using mac. I tried this 开发者_Go百科timerake spec/models/user_spec.rb

I am using Rails 3.0.10 . I am using mac.

I tried this

开发者_Go百科
time  rake spec/models/user_spec.rb

Then I tried

time (rake spec/models/user_spec.rb)

This one took longer but I did not see my test output.

What is the right way to figure out how long my rake is taking.


You should be able to time any command using 'time' and run your single test directly using the ruby interpreter:

time ruby spec/models/user_spec.rb
0

精彩评论

暂无评论...
验证码 换一张
取 消