spec/spec_helper.rb in h8-0.1.0 vs spec/spec_helper.rb in h8-0.1.1
- old
+ new
@@ -43,5 +43,12 @@
def false.false?
true
end
+def measure text, reps=10000
+ t = Time.now
+ reps.times { yield }
+ puts "#{Time.now-t} spent to #{text}"
+end
+
+