Re: Python sol'n to qotw 23 (parens)
Jereme Corrado <jereme-eOgykUXTlIE4oC6ZuLIW0ln8z39Dn/[email protected]>
| Newsgroups | gmane.comp.lang.perl.qotw.discuss |
|---|---|
| Message-ID | <[email protected]> |
Andrew Dalke wrote: > ## qotw23.py > # Python solution to the Perl quiz of the week #23 I enjoyed reading your solution, I have no Python experience but it's pretty clear and always fun to see another path to a familiar goal. > Here's what I get for timings on my 1GHz PowerBook G4. > I tried with both the --count option and by generating > all the output > /dev/null (wanted to see how much I/O > overhead there was). I ran them on the command-line > so the 0.12s or so is basically the startup costs. > > Output > Count >/dev/null Bill's > Size Count Time(in s) (in s) times > ---- ------ ------ ------ ------ > 0 0 0.13 0.14 0.08 > 1 1 0.12 0.12 0.06 > 2 2 0.12 0.12 0.18 > 3 5 0.12 0.12 0.06 > 4 14 0.12 0.12 0.11 > 5 42 0.12 0.12 0.10 > 6 132 0.12 0.12 0.09 > 7 429 0.13 0.13 0.15 > 8 1430 0.15 0.15 0.31 > 9 4862 0.22 0.24 0.57 > 10 16796 0.49 0.54 1.57 > 11 58786 1.52 1.82 6.04 > 12 208012 5.41 6.42 19.62 > 13 742900 22.39 24.77 64.13 > 14 2674440 90.73 89.12 228.41 > 15 9694845 291.84 343.68 n/a > I don't see any other posts which list the sizes. I would like to > have the double check. I found the same counts over here. regards, jereme