title: Is there a way to check the performance of a command in the console in Ruby on Rails?
body: <p>I couldn't find any information on if this was possible but it would be useful I could call a method on a command in the <code>rails console</code> and determine the performance using any measurement but I was mostly thinking about in time. </p>
  
  <p>For example, I'm trying to figure out which of these is faster:</p>
  
  <pre><code>[val2,val3,val4,val5,val6].find{|x| x != val1}
  [val2,val3,val4,val5,val6].all?{|x| x == val1} 
  </code></pre>
  
  <p>Is there something like this?</p>
  
  <pre><code>[val2,val3,val4,val5,val6].find{|x| x != val1}.performance
  </code></pre>