I've been trying to figure out why my site is taking 1.5 seconds to
load consistently and 4-10 seconds every couple pages. Here's what
I've tracked down using CherryPy's new profiler;
-----------------------------
ncalls tottime percall cumtime percall
filename:lineno(function)
6 1.190 0.198 1.190 0.198 :0(stretch)
48 0.590 0.012 0.590 0.012 :0(decode)
9446/1672 0.180 0.000 0.230 0.000 parser.py:154(_pull)
3435/862 0.180 0.000 3.450 0.004 parser.py:207(_coalesce)
6781/859 0.150 0.000 3.350 0.004 parser.py:172(_track)
1234 0.120 0.000 4.050 0.003 serialization.py:
302(generate)
1153 0.120 0.000 3.760 0.003 serialization.py:
138(format_stream)
6/2 0.090 0.015 3.120 1.560 parser.py:94(expand)
6 0.090 0.015 0.090 0.015 :0(encode_to_file)
5727 0.060 0.000 0.060 0.000 :0(isinstance)
2533/859 0.060 0.000 3.350 0.004 filter.py:
23(apply_matches)
3692 0.060 0.000 0.060 0.000 :0(startswith)
850 0.050 0.000 0.050 0.000 element.py:22(__init__)
ncalls tottime percall cumtime percall
filename:lineno(function)
5633/757 0.110 0.000 0.940 0.001 parser.py:172(_track)
2944/760 0.100 0.000 0.950 0.001 parser.py:207(_coalesce)
7870/1388 0.090 0.000 0.120 0.000 parser.py:154(_pull)
2141/757 0.080 0.000 0.910 0.001 filter.py:
23(apply_matches)
4695 0.080 0.000 0.080 0.000 :0(isinstance)
1076 0.060 0.000 1.360 0.001 serialization.py:
302(generate)
3664 0.060 0.000 0.060 0.000 :0(append)
1037 0.060 0.000 1.200 0.001 serialization.py:
138(format_stream)
1215 0.050 0.000 0.080 0.000 serialization.py:
723(tagname)
3513 0.050 0.000 0.050 0.000 :0(startswith)
6/2 0.040 0.007 0.670 0.335 parser.py:94(expand)
--------------------------------------------
These results are pretty typical - the first request took 4.6 seconds,
the second 1.6. When the time jumps above 1.8 seconds, it's always
stretch() and decode() which are taking the most time.
Can anyone tell me what's going on here?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---