evanphx (owner)

Revisions

gist: 192161 Download_button fork
public
Public Clone URL: git://gist.github.com/192161.git
Embed All Files: show embed
percentage from self #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
3005 ms / 1000 req = 3005.5 usec/req
 
Total Runtime: 3.007284271s
  % cumulative self self total
 time seconds seconds calls ms/call ms/call name
------------------------------------------------------------
   6.93 0.42 0.21 191254 0.00 0.00 Hash#find_entry
   4.12 0.46 0.12 50060 0.00 0.01 Hash.[]
   4.10 0.16 0.12 1001 0.12 0.16 Digest::Instance#digest
   3.05 0.11 0.09 23044 0.00 0.00 Hash::Iterator#next
   2.97 0.22 0.09 52105 0.00 0.00 Hash#[]=
   2.93 0.11 0.09 244373 0.00 0.00 Hash#key_index
   2.75 0.44 0.08 156215 0.00 0.00 Hash#[]
   2.69 0.25 0.08 1001 0.08 0.25 Digest::Class.digest
   2.25 0.11 0.07 69069 0.00 0.00 String#concat
   2.06 2.44 0.06 12012 0.01 0.20 ActiveSupport::Orchestra.instrument
   2.02 0.08 0.06 137210 0.00 0.00 Hash::Entry#match?
   1.99 0.09 0.06 52100 0.00 0.00 Hash#new_entry
   1.97 0.10 0.06 12012 0.00 0.01 Array#delete
   1.85 0.06 0.06 51068 0.00 0.00 Hash#setup
   1.65 0.06 0.05 51066 0.00 0.00 Hash#initialize
   1.59 0.23 0.05 10010 0.00 0.02 ActionView::CompiledTemplates#_render_template_2336724986862189222_3966_381541351890795378
   1.41 0.07 0.04 18039 0.00 0.00 String#[]
   1.30 0.03 0.04 466799 0.00 0.00 Rubinius::Tuple#[]
   1.24 0.28 0.04 1001 0.04 0.28 Digest::Class.hexdigest
   1.15 0.04 0.03 45054 0.00 0.00 String#to_s
   1.15 0.04 0.03 71087 0.00 0.00 Array#to_iter
   1.15 0.09 0.03 13014 0.00 0.01 Thread.detect_recursion
   1.12 0.10 0.03 51066 0.00 0.00 Hash.allocate
   1.11 0.11 0.03 15018 0.00 0.01 Array#each
   1.05 0.06 0.03 38050 0.00 0.00 Kernel#respond_to?
   1.00 0.03 0.03 283398 0.00 0.00 Kernel#hash
   0.99 1.78 0.03 1001 0.03 1.78 ActionView::CompiledTemplates#_render_template_2411658227922702191_3910_1539999278187549380
   0.96 0.09 0.03 12012 0.00 0.01 ActiveSupport::Orchestra::Event#finish!
   0.90 1.86 0.03 11011 0.00 0.17 ActionView::Template#render
   0.86 1.87 0.03 11011 0.00 0.17 ActionView::Partials::PartialRenderer#render_template
   0.83 0.15 0.02 11011 0.00 0.01 ActionView::Partials::PartialRenderer#setup
   0.83 0.04 0.02 24026 0.00 0.00 Time#to_f
   0.83 0.02 0.02 296437 0.00 0.00 Fixnum#&
   0.81 0.03 0.02 14014 0.00 0.00 Array::IdentityMap#insert
   0.81 0.05 0.02 24026 0.00 0.00 Time.now
   0.76 1.82 0.02 11011 0.00 0.16 ActionView::Template#render {}
   0.70 0.03 0.02 12013 0.00 0.00 Array#hash {}
   0.69 0.02 0.02 75105 0.00 0.00 Kernel#tainted?
   0.65 0.02 0.02 52100 0.00 0.00 Hash::Entry#initialize
   0.63 1.52 0.02 10010 0.00 0.15 ActionView::Rendering#render
   0.60 0.05 0.02 12012 0.00 0.00 ActiveSupport::Orchestra::Event#initialize
   0.60 0.16 0.02 12015 0.00 0.01 Hash#each
   0.57 0.01 0.02 200260 0.00 0.00 Array::Iterator#next
   0.54 1.89 0.02 11011 0.00 0.17 ActionView::Partials::PartialRenderer#render
   0.54 0.01 0.02 55074 0.00 0.00 Rubinius::Tuple.new
   0.54 0.02 0.02 24026 0.00 0.00 Time#initialize
   0.53 0.31 0.02 1001 0.02 0.31 ActionDispatch::Response#etag=
   0.52 0.01 0.02 137214 0.00 0.00 Kernel#kind_of?
   0.51 0.02 0.02 26028 0.00 0.00 String#to_sym
   0.50 0.01 0.02 38050 0.00 0.00 Kernel#prim_respond_to?
   0.48 0.01 0.01 71080 0.00 0.00 String#append
   0.47 0.01 0.01 52076 0.00 0.00 Hash#default
   0.47 0.01 0.01 107153 0.00 0.00 Module#===
   0.47 0.08 0.01 4005 0.00 0.02 Module#verify_class_variable_name
   0.47 0.01 0.01 138225 0.00 0.00 Class#allocate
   0.45 0.08 0.01 34036 0.00 0.00 Hash#key?
   0.44 0.01 0.01 154236 0.00 0.00 Kernel#equal?
   0.43 0.01 0.01 2002 0.01 0.01 Digest::Base#reset
   0.42 0.03 0.01 2002 0.01 0.02 Array#map
   0.42 0.31 0.01 11011 0.00 0.03 ActionView::Template#build_method_name
   0.42 0.02 0.01 35043 0.00 0.00 Array#<<
   0.41 0.02 0.01 12012 0.00 0.00 Array#reallocate_shrink
   0.40 0.05 0.01 14015 0.00 0.00 Rubinius.instance_variable_validate
   0.40 0.16 0.01 11011 0.00 0.01 Enumerable#map
   0.40 0.02 0.01 7007 0.00 0.00 Array::IdentityMap#include?
   0.38 0.01 0.01 10015 0.00 0.00 Rubinius::GlobalVariables#[]
   0.38 1.40 0.01 10010 0.00 0.14 ActionView::Partials#_render_partial
   0.37 0.01 0.01 26026 0.00 0.00 Proc.__from_block__
   0.36 0.01 0.01 129173 0.00 0.00 Array::Iterator#item
   0.36 0.02 0.01 11011 0.00 0.00 Enumerable#collect {}
   0.35 0.01 0.01 12012 0.00 0.00 Array#last
   0.35 0.01 0.01 53059 0.00 0.00 Kernel#object_id
   0.35 0.01 0.01 71087 0.00 0.00 Array::Iterator.new
   0.33 0.01 0.01 1001 0.01 0.01 Digest::Base#update
   0.33 2.40 0.01 1001 0.01 2.40 ActionController::Base#_run_process_action_callbacks
   0.33 0.10 0.01 12013 0.00 0.01 Array#hash
   0.33 0.02 0.01 4005 0.00 0.01 Array#initialize
   0.32 0.01 0.01 1001 0.01 0.01 Digest::Base.allocate
   0.32 0.04 0.01 1001 0.01 0.04 Array::IdentityMap#load
   0.32 0.12 0.01 4005 0.00 0.03 Module#class_variable_get
   0.31 0.02 0.01 12023 0.00 0.00 Hash#to_iter
   0.31 0.01 0.01 106140 0.00 0.00 Kernel#eql?
   0.30 0.01 0.01 1001 0.01 0.01 Digest::Base#finish
   0.30 0.01 0.01 13041 0.00 0.00 Kernel#===
   0.30 0.05 0.01 11011 0.00 0.00 ActionView::Partials::PartialRenderer#collection
   0.29 0.34 0.01 11011 0.00 0.03 ActionView::Template#compile
   0.29 0.01 0.01 94142 0.00 0.00 Rubinius::Tuple#[]=
   0.29 2.53 0.01 1001 0.01 2.52 ActionController::Rescue#process_action
   0.27 0.09 0.01 1001 0.01 0.09 Array#-
   0.25 0.01 0.01 4019 0.00 0.00 String#substring
   0.24 0.01 0.01 18034 0.00 0.00 Type.coerce_to
   0.24 0.04 0.01 11011 0.00 0.00 ActionView::Partials::PartialRenderer#find_template
   0.23 0.01 0.01 55068 0.00 0.00 Array#empty?
   0.23 0.17 0.01 11011 0.00 0.02 Hash#keys
   0.22 0.01 0.01 80098 0.00 0.00 Kernel#==
   0.21 0.01 0.01 4005 0.00 0.00 Kernel#__instance_variable_defined_eh__
   0.19 0.02 0.01 6010 0.00 0.00 Class#new
   0.19 0.01 0.01 42044 0.00 0.00 Fixnum#divide
   0.18 0.00 0.01 35043 0.00 0.00 Array#set_index
   0.18 0.02 0.01 1001 0.01 0.02 Array#collect
   0.17 2.35 0.01 1001 0.01 2.35 ActionController::RenderingController#render
   0.17 0.00 0.00 11011 0.00 0.00 Hash#keys {}
   0.16 0.00 0.00 24026 0.00 0.00 Time#gettimeofday
   0.16 0.00 0.00 12023 0.00 0.00 Hash::Iterator#initialize
   0.16 0.01 0.00 13013 0.00 0.00 Array::IdentityMap#match?
   0.16 0.06 0.00 2002 0.00 0.03 ActionView::Partials::PartialRenderer#initialize
   0.16 0.02 0.00 10010 0.00 0.00 Kernel#instance_variable_set
   0.15 0.00 0.00 52085 0.00 0.00 Kernel#__class__
   0.15 0.01 0.00 4004 0.00 0.00 Type.coerce_to_symbol
   0.15 0.05 0.00 1001 0.00 0.05 ActionDispatch::Response#assign_default_content_type_and_charset!
   0.15 0.00 0.00 2002 0.00 0.00 ActionController::Base#request
   0.15 0.01 0.00 4007 0.00 0.00 Range#initialize
   0.13 0.00 0.00 13016 0.00 0.00 Symbol#to_s
   0.13 0.05 0.00 5005 0.00 0.01 ActionView::Base#_evaluate_assigns_and_ivars {}
   0.13 0.01 0.00 7007 0.00 0.00 Enumerable#find_all {}
   0.13 0.03 0.00 10010 0.00 0.00 Kernel#instance_variable_get
   0.12 0.06 0.00 1001 0.00 0.06 ActionView::Base.for_controller
   0.12 0.00 0.00 6013 0.00 0.00 Comparable#between?
   0.12 0.01 0.00 1001 0.00 0.01 ActionDispatch::Response#initialize
   0.12 0.00 0.00 41045 0.00 0.00 Thread.current
   0.12 0.00 0.00 24026 0.00 0.00 Fixnum#+
   0.11 0.34 0.00 1001 0.00 0.34 ActionDispatch::Response#handle_conditional_get!
   0.11 0.00 0.00 24026 0.00 0.00 Time.allocate
   0.10 2.28 0.00 1001 0.00 2.28 ActionController::RenderingController#render_to_body
   0.10 0.00 0.00 35059 0.00 0.00 Array::Iterator#at
   0.10 2.17 0.00 1001 0.00 2.17 ActionView::Partials#render_partial
   0.10 0.00 0.00 26038 0.00 0.00 Symbol#to_sym
   0.10 0.00 0.00 12012 0.00 0.00 ActionView::Template#variable_name
   0.10 0.04 0.00 1001 0.00 0.04 ActionView::Base#initialize
   0.10 0.00 0.00 26035 0.00 0.00 Rubinius::LookupTable#[]
   0.09 3.00 0.00 1001 0.00 2.99 ActionController::RackConvenience#call
   0.09 0.00 0.00 24024 0.00 0.00 Array#[]=
   0.09 0.00 0.00 4020 0.00 0.00 String.pattern
   0.09 0.00 0.00 14015 0.00 0.00 Rubinius::LookupTable#[]=
   0.09 0.00 0.00 18034 0.00 0.00 Type.obj_kind_of?
   0.09 0.01 0.00 4005 0.00 0.00 CType#toupper
   0.09 0.40 0.00 1001 0.00 0.40 ActionDispatch::Response#to_a
   0.09 0.00 0.00 4005 0.00 0.00 CType#islower
   0.09 0.24 0.00 1001 0.00 0.24 ActionView::Base#_evaluate_assigns_and_ivars
   0.09 0.00 0.00 24026 0.00 0.00 Time#seconds
   0.09 0.01 0.00 3003 0.00 0.00 Thread#[]
   0.09 0.00 0.00 30055 0.00 0.00 Fixnum#<=
   0.08 0.00 0.00 10010 0.00 0.00 BasePostController::Foo#omg
   0.08 2.51 0.00 1001 0.00 2.51 ActionController::RenderingController#process_action
   0.08 0.01 0.00 1001 0.00 0.01 ActiveSupport::Cache.expand_cache_key
   0.08 0.00 0.00 16027 0.00 0.00 String#eql?
   0.08 2.49 0.00 1001 0.00 2.49 AbstractController::Logger#process_action
   0.08 0.00 0.00 24026 0.00 0.00 Time#usec
   0.08 0.06 0.00 1001 0.00 0.06 Array::IdentityMap#initialize
   0.07 0.00 0.00 25025 0.00 0.00 Array::Iterator#index
   0.07 0.01 0.00 1001 0.00 0.01 Rack::Response#to_a
   0.07 0.00 0.00 1001 0.00 0.00 Array#map!
   0.07 2.31 0.00 1001 0.00 2.30 AbstractController::RenderingController#render
   0.07 0.00 0.00 7007 0.00 0.00 Object#instance_variables {}
   0.07 0.00 0.00 2011 0.00 0.00 String#<<
   0.07 0.00 0.00 13014 0.00 0.00 Rubinius::LookupTable#delete
   0.07 0.00 0.00 1001 0.00 0.00 Array#eql? {}
   0.07 0.00 0.00 7007 0.00 0.00 <metaclass>#convert_to_names {}
   0.06 0.12 0.00 4005 0.00 0.03 Rubinius::StaticScope#class_variable_get
   0.06 0.00 0.00 13019 0.00 0.00 Rubinius::LookupTable#key?
   0.06 0.00 0.00 1001 0.00 0.00 Rubinius::Tuple#dup
   0.06 0.00 0.00 1009 0.00 0.00 Array#include?
   0.06 0.05 0.00 1001 0.00 0.05 Object#instance_variable_names
   0.06 0.00 0.00 12017 0.00 0.00 Fixnum#*
   0.06 0.00 0.00 4030 0.00 0.00 Kernel#freeze
   0.05 0.00 0.00 12012 0.00 0.00 Rubinius::Tupl