Re: [Twisted-Python] Speed of rendering?

Peter Westlake <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Message-ID <1351084544.6435.140661144837881.57112D47@webmail.messagingengine.com>
On Wed, Oct 24, 2012, at 13:59, [email protected] wrote:
> 
> The benchmark tools are really intended for actually asynchronous 
> things, like setting up a TCP connection.  They can be abused into 
> testing synchronous things, but the results are not very good.
> 
> It would probably be better not to try to re-use the asynchronous 
> testing tools for testing synchronous APIs and instead build some tools 
> for testing synchronous APIs.  These should be simpler anyway.  You 
> don't *need* a running reactor for the synchronous case of flatten().

This message appeared while I was typing my reply, in which I
laboriously
worked my way round to a similiar conclusion! So I'll write some tests
that test synchronous uses, with no Deferreds. Waiting for other results
to appear would only skew the timings, so I won't try timing any cases
with Deferreds in them.

Peter.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.