<html>
<body>
At 12:12 PM 8/24/2007, Kent Johnson wrote:<br>
<blockquote type=cite class=cite cite="">Dick Moores wrote:<br>
<blockquote type=cite class=cite cite="">At 10:22 AM 8/24/2007, Kent
Johnson wrote:<br>
<blockquote type=cite class=cite cite="">So you actually pasted that code
into timeit.py?</blockquote>Yeah. :-( I think I learned on the Tutor list
to do it that way, but I'm not sure. Thanks for showing me a correct
way.</blockquote><br>
I hope not!<br><br>
<blockquote type=cite class=cite cite="">
<blockquote type=cite class=cite cite="">Using timeit more conventionally
I get unsurprising results. This program has output:<br>
0.497083902359<br>
0.359513998032<br><br>
which is more in line with what I would expect.</blockquote>Using your
exact code, I just got<br>
0.737564690484<br>
1.17399585702<br>
Which is the reverse of your result, but on a slower computer. What's up
with that??</blockquote><br>
I have no idea. Some strange interaction with the memory cache? I'm
running Python 2.5.1 on a MacBook Pro (Intel Core 2 Duo processor). How
about you?</blockquote><br>
Python 2.5; Dell Dimension 4600i; <font size=2>2.80 gigahertz Intel
Pentium 4</font>. The other day my computer guy put in a 512K stick of
memory, making the total 1024K. However, by doing so he shut off the dual
channel memory. I understand now that he should have put in a pair of
256k sticks to go with the pair that were already there. Seems
far-fetched, but could this be the cause of the problem with the timings?
Nah, you're talking about one of these caches that Belarc says I have:
<br>
<font size=2>8 kilobyte primary memory cache<br>
512 kilobyte secondary memory cache</font> <br><br>
Right?<br><br>
<br>
<blockquote type=cite class=cite cite="">Time for one of the über-wizards
to chime in, maybe :-) or post the code and results on comp.lang.python
and see what they say there.</blockquote><br>
Dick<br><br>
<br><br>
<x-sigsep><p></x-sigsep>
===============================<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Bagdad Weather<br>
&lt;<a href="http://weather.yahoo.com/forecast/IZXX0008_f.html" eudora="autourl">
http://weather.yahoo.com/forecast/IZXX0008_f.html</a>&gt;</body>
</html>