Hi,
I have a question, on how to further improve the site. I attached the
profiler of the site.
Currently, It take about 1.8 seconds to load.
At first I have question on
-
“Mysql#get_length” which take the longest to run. What this means? is
the query time to get data from database? or the time to process data
from database? -
“Integer#times” => what this one mean
Thank you in advance,
Beta
Processing SiteController#index (for at 2007-12-14 17:17:30) [GET]
Session ID: 37ae3e35922944de02a29c40080bd5aa
Parameters: {“action”=>“index”, “controller”=>“site”}
Rendering within layouts/site
Rendering site/index
Completed in 1.86557 (0 reqs/sec) | Rendering: 0.02519 (1%) | DB:
0.97598 (52%) | 200 OK [http://www.domainname.com/]
[http://www.domainname.com/]
Thread ID: 47637799080480
Total: 0.96
%self total self wait child calls name
Thread ID: 47637798421720
Total: 1.79
%self total self wait child calls name
14.53 0.47 0.26 0.00 0.21 15822 Mysql#get_length
9.50 0.84 0.17 0.00 0.67 625 Integer#times
7.82 0.14 0.14 0.00 0.00 29018 String#slice!
7.82 0.21 0.14 0.00 0.07 391 Array#each_index
4.47 0.08 0.08 0.00 0.00 18146 Array#<<
3.91 0.07 0.07 0.00 0.00 5631 IO#write
3.91 0.07 0.07 0.00 0.00 18944 Hash#[]=
3.35 0.06 0.06 0.00 0.00 17305 Kernel#==
2.79 0.15 0.05 0.00 0.10 3329
ActiveRecord::Base#==
2.79 0.06 0.05 0.00 0.01 16425 Hash#[]
2.23 0.04 0.04 0.00 0.00 32530 Array#[]
2.23 0.04 0.04 0.00 0.00 7274 String#to_i
1.68 0.42 0.03 0.00 0.39 344 Array#each-1
1.68 0.05 0.03 0.00 0.02 524 Array#each-2
1.68 0.09 0.03 0.00 0.06 36750 Fixnum#==
1.68 0.09 0.03 0.00 0.06 6658 Asset#id
1.68 0.03 0.03 0.00 0.00 2390 Symbol#to_s
1.68 0.54 0.03 0.00 0.51 78 Array#each
1.68 0.07 0.03 0.00 0.04 673 Mysql::Net#read
1.12 0.95 0.02 0.00 0.93 657 Mysql#read_one_row
1.12 0.02 0.02 0.00 0.00 16286 String#length
1.12 0.05 0.02 0.00 0.03 282 Article#vote
1.12 0.17 0.02 0.00 0.15 535 Array#include?
1.12 0.05 0.02 0.00 0.03 282 Article#asset