A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20161011/615dbb11/attachment.html below:

<p dir="ltr">But the sort mutates F...does the setup get executed each time? I thought it's just at the beginning. So then F gets mutated (sorted) and subsequent sorts time wrong.</p>
<br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 11, 2016, 7:51 AM Paul Moore <<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 11 October 2016 at 14:04, Elliot Gorokhovsky<br class="gmail_msg">
<<a href="mailto:elliot.gorokhovsky@gmail.com" class="gmail_msg" target="_blank">elliot.gorokhovsky@gmail.com</a>> wrote:<br class="gmail_msg">
> Right, that sounds good, but there's just one thing I don't understand<br class="gmail_msg">
> that's keeping me from using it. Namely, I would define a benchmark list L<br class="gmail_msg">
> in my setup, and then I would have code="F=FastList(L);F.fastsort()". The<br class="gmail_msg">
> problem here is I'm measuring the constructor time along with the sort time,<br class="gmail_msg">
> right, so wouldn't that mess up the benchmark? Or does timeit separate the<br class="gmail_msg">
> times?<br class="gmail_msg">
<br class="gmail_msg">
That would mess up your times. Put F=FastList(L) in your setup.<br class="gmail_msg">
<br class="gmail_msg">
Paul<br class="gmail_msg">
</blockquote></div>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4