[Twisted-web] [Twisted-Python] Speed of rendering?
Glyph
glyph at twistedmatrix.com
Tue Sep 4 14:30:47 EDT 2012
On Sep 3, 2012, at 7:50 AM, Peter Westlake <peter.westlake at pobox.com> wrote:
> On Sun, Jun 24, 2012, at 20:14, Peter Westlake wrote:
>> On Fri, Jun 22, 2012, at 15:27, Glyph wrote:
>>>
>>> On Jun 22, 2012, at 2:52 PM, Peter Westlake <peter.westlake at pobox.com> wrote:
>>>
>>>> On Thu, Jun 21, 2012, at 10:16, Glyph wrote:
>>>>>
>>>>> Le Jun 21, 2012 à 6:52 AM, Peter Westlake <peter.westlake at pobox.com> a écrit :
>>>>>
>>>>>> How fast is rendering in nevow?
> ...
>>>>> What does your profiler tell you?
>>>>
>>>> There's a profiler? There's a profiler! There it is,
>>>> right up there at the top of the man page! Thank you!
>>>
>>> Not only is there a profiler, there's benchmarks!
>>>
>>> <http://speed.twistedmatrix.com/timeline/>
>>>
>>> Maybe you could add one for twisted.web.template rendering speed?
>
> Okay, I've found out how to use the profiler (though I never did
> find out what I did wrong the first time) and I'm reading the docs
> about how to interpret the results. The benchmark code doesn't look
> as though it uses the profiler, just times a number of repetitions
> - is that right? So a benchmark for t.w.template would consist of
> some functions that called flatten() once each?
That's the general idea, yes. Of course, each benchmark should try to be vaguely representative of some real-world use-case so that we don't optimize one case too much in favor of another.
-glyph
More information about the Twisted-web
mailing list