Finish Rails-ifying the tree. Adds missing files and directories and

brings a few miscellaneous files up to date.
This commit is contained in:
Ben Bleything 2005-08-11 05:36:35 +00:00
parent 503aa99c63
commit 50343b79e8
15 changed files with 2776 additions and 338 deletions

19
script/benchmarker Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/ruby1.8
if ARGV.empty?
puts "Usage: benchmarker times 'Person.expensive_way' 'Person.another_expensive_way' ..."
exit
end
require File.dirname(__FILE__) + '/../config/environment'
require 'benchmark'
include Benchmark
# Don't include compilation in the benchmark
ARGV[1..-1].each { |expression| eval(expression) }
bm(6) do |x|
ARGV[1..-1].each_with_index do |expression, idx|
x.report("##{idx + 1}") { ARGV[0].to_i.times { eval(expression) } }
end
end