evanphx (owner)

Revisions

gist: 192351 Download_button fork
public
Public Clone URL: git://gist.github.com/192351.git
Embed All Files: show embed
Text only #
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
kendall :: actionpack/examples ยป PROFILE=ten_partials ~/git/rbx-64/bin/rbx -Xprofiler.classes -rrubygems minimal.rb
DEPRECATION WARNING: ActiveSupport::JSON::CircularReferenceError is deprecated! Use ActiveSupport::JSON::Encoding::CircularReferenceError instead.. (called from __module_init__ (JSON) at ./../lib/../../activesupport/lib/active_support/json/encoding.rb:114)
DEPRECATION WARNING: ActiveSupport::JSON::CircularReferenceError is deprecated! Use ActiveSupport::JSON::Encoding::CircularReferenceError instead.. (called from __module_init__ (JSON) at ./../lib/../../activesupport/lib/active_support/json/encoding.rb:114)
ten_partials
============
2889 ms / 1000 req = 2889.1 usec/req
 
Total running time: 2.890818018s
 
  % cumulative self self total
 time seconds seconds calls ms/call ms/call name
------------------------------------------------------------
   7.43 0.42 0.21 191254 0.00 0.00 Hash#find_entry
   3.24 0.13 0.09 1001 0.09 0.13 Digest::Instance#digest
   3.14 0.22 0.09 52105 0.00 0.00 Hash#[]=
   3.12 0.11 0.09 23044 0.00 0.00 Hash::Iterator#next
   3.10 0.45 0.09 156215 0.00 0.00 Hash#[]
   2.96 0.10 0.09 244373 0.00 0.00 Hash#key_index
   2.53 0.24 0.07 56070 0.00 0.00 Class#new
   2.22 0.20 0.06 1001 0.06 0.20 Digest::Class.digest
   2.15 0.08 0.06 136209 0.00 0.00 Hash::Entry#match?
   2.14 0.10 0.06 69069 0.00 0.00 String#concat
   2.09 0.10 0.06 12012 0.01 0.01 Array#delete
   2.09 0.07 0.06 51066 0.00 0.00 Hash#initialize
   1.98 0.09 0.06 52100 0.00 0.00 Hash#new_entry
   1.93 2.39 0.06 12012 0.00 0.20 ActiveSupport::Orchestra.instrument
   1.78 0.06 0.05 51068 0.00 0.00 Hash#setup
   1.62 0.23 0.05 10010 0.00 0.02 ActionView::CompiledTemplates#_render_template_2336724986862189222_3954_159154574482379754
   1.61 0.08 0.05 18039 0.00 0.00 String#[]
   1.36 0.03 0.04 466799 0.00 0.00 Rubinius::Tuple#[]
   1.31 0.10 0.04 12012 0.00 0.01 ActiveSupport::Orchestra::Event#finish!
   1.22 0.10 0.04 13014 0.00 0.01 Thread.detect_recursion
   1.20 0.06 0.03 38050 0.00 0.00 Kernel#respond_to?
   1.18 1.73 0.03 1001 0.03 1.72 ActionView::CompiledTemplates#_render_template_2411658227922702191_3904_3020973553090889461
   1.13 0.04 0.03 24026 0.00 0.00 Time#to_f
   1.11 0.10 0.03 51066 0.00 0.00 Hash.allocate
   1.09 0.23 0.03 1001 0.03 0.23 Digest::Class.hexdigest
   1.06 1.81 0.03 11011 0.00 0.16 ActionView::Template#render
   1.03 0.03 0.03 283398 0.00 0.00 Kernel#hash
   0.95 0.03 0.03 45054 0.00 0.00 String#to_s
   0.95 1.82 0.03 11011 0.00 0.17 ActionView::Partials::PartialRenderer#render_template
   0.89 0.04 0.03 24026 0.00 0.00 Time.now
   0.89 0.03 0.03 14014 0.00 0.00 Array::IdentityMap#insert
   0.88 0.04 0.03 12013 0.00 0.00 Array#hash {}
   0.87 0.16 0.03 11011 0.00 0.01 ActionView::Partials::PartialRenderer#setup
   0.81 0.10 0.02 15018 0.00 0.01 Array#each
   0.81 0.03 0.02 47059 0.00 0.00 Array#to_iter
   0.80 1.84 0.02 11011 0.00 0.17 ActionView::Partials::PartialRenderer#render
   0.80 0.02 0.02 272409 0.00 0.00 Fixnum#&
   0.75 1.76 0.02 11011 0.00 0.16 ActionView::Template#render {}
   0.71 0.02 0.02 75105 0.00 0.00 Kernel#tainted?
   0.67 1.51 0.02 10010 0.00 0.15 ActionView::Rendering#render
   0.65 0.16 0.02 12015 0.00 0.01 Hash#each
   0.64 0.02 0.02 52100 0.00 0.00 Hash::Entry#initialize
   0.63 0.05 0.02 12012 0.00 0.00 ActiveSupport::Orchestra::Event#initialize
   0.60 0.09 0.02 34036 0.00 0.00 Hash#key?
   0.57 0.04 0.02 2002 0.01 0.02 Array#map
 
399 methods omitted
 
444 methods called a total of 5,414,314 times
 
Usage percentage by class:
                                              Hash: 26.23
                                             Array: 8.49
                                            Kernel: 6.52
                                            String: 6.32
             ActionView::Partials::PartialRenderer: 3.36
                                     Digest::Class: 3.31
                                    Hash::Iterator: 3.29
                                  Digest::Instance: 3.24
                                             Class: 3.00
                                              Time: 2.81
                     ActionView::CompiledTemplates: 2.80
                                       Hash::Entry: 2.79
                              ActionView::Template: 2.66
                                   Rubinius::Tuple: 2.41
                   ActiveSupport::Orchestra::Event: 1.95
                          ActiveSupport::Orchestra: 1.93
                                Array::IdentityMap: 1.92
                                      Digest::Base: 1.48
                                            Thread: 1.46
                                            Fixnum: 1.43
                                            Module: 1.35
                          ActionDispatch::Response: 1.19
                                   Array::Iterator: 1.02
                                        Enumerable: 0.91
                             ActionView::Rendering: 0.67
                                  ActionView::Base: 0.58
                              ActionView::Partials: 0.56
                            ActionController::Base: 0.55
                                              Type: 0.50
                                          Rubinius: 0.46
             ActionController::RenderingController: 0.45
                                              Proc: 0.43
                         Rubinius::GlobalVariables: 0.37
                             Rubinius::LookupTable: 0.35
                                            Symbol: 0.29
                                            Object: 0.24
                                             CType: 0.20
                                             Range: 0.18
           AbstractController::RenderingController: 0.15
                 ActionController::RackConvenience: 0.15
                           ActionController::Metal: 0.14
                                        Comparable: 0.13
                          AbstractController::Base: 0.13
                        AbstractController::Logger: 0.12
                                    Rack::Response: 0.11
                              ActiveSupport::Cache: 0.09
                               ActionView::PathSet: 0.09
                           BasePostController::Foo: 0.08
                           ActionDispatch::Request: 0.08
                                BasePostController: 0.08
            ActionController::Base::ImplicitRender: 0.07
                             Rubinius::StaticScope: 0.07
                                       <metaclass>: 0.07
                                             Float: 0.05
                                     Rack::Request: 0.05
           ActionController::Metal::ActionEndpoint: 0.05
                       AbstractController::Layouts: 0.05
                         ActionController::HashKey: 0.05
                               Rubinius::ByteArray: 0.05
                     AbstractController::Callbacks: 0.05
                           ActionController::Flash: 0.04
                     ActionController::HideActions: 0.04
ActionController::FilterParameterLogging::InstanceMethodsForNewBase: 0.04
       ActionController::HideActions::ClassMethods: 0.03
                                           Integer: 0.03
                          ActionController::Rescue: 0.03
                   ActionController::RenderOptions: 0.03
                                              I18n: 0.03
                                            Runner: 0.03
AbstractController::RenderingController::ClassMethods: 0.02
                                        Mime::Type: 0.02
                                           Numeric: 0.01
                                                IO: 0.01
                                 Rubinius::Sprintf: 0.00
                                          NilClass: 0.00
                      Rubinius::CompactLookupTable: 0.00
                                            Regexp: 0.00
                                         MatchData: 0.00
                                            Buffer: 0.00
          ActiveSupport::HashWithIndifferentAccess: 0.00
                                 Rack::MockRequest: 0.00
                                      URI::Generic: 0.00
                                               URI: 0.00
                                          StringIO: 0.00
                    Rubinius::EnvironmentVariables: 0.00
                                                  : 0.00
                                         Benchmark: 0.00
                           Rubinius::Sprintf::Slot: 0.00
                                       Rack::Utils: 0.00
                           Rubinius::VariableScope: 0.00