Skip to content

Commit

Permalink
parse time benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Feb 16, 2012
0 parents commit a9d5acf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test_parse_time.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require 'abstract_controller'
require 'action_controller'

require 'benchmark/ips'


rs = ActionDispatch::Routing::RouteSet.new

Benchmark.ips do |x|
x.report("draw") {
rs.draw do
resources :users
resources :paths
resources :donuts
end
}
end

0 comments on commit a9d5acf

Please sign in to comment.