How to derive lead time for rake tasks

I am working on rake tasks for a large .net solution (using the albacore stone), and I want to be able to write to the start and start time of the file for any rake tasks that run to try to speed up our build and find bottlenecks. Is there anything I can use, or do I need to write something?

+5
source share
2 answers

Ruby Stdlib has a simple comparison library:

require 'benchmark'

puts Benchmark.measure { "a"*1_000_000 }

You can refuse this in your rake tasks, since for an automatic "test of all tasks of performing rake" this will require a little digging inside the rake.

: http://ruby-doc.org/stdlib/libdoc/benchmark/rdoc/index.html

+3
+3

All Articles