Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79433
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-10-22 04:35 -0700 |
| References | <54476a77$0$21664$426a74cc@news.free.fr> <mailman.15058.1413968065.18130.python-list@python.org> |
| Message-ID | <6629338b-2e89-4b38-a139-1d56d6c80a77@googlegroups.com> (permalink) |
| Subject | Re: (-1)**1000 |
| From | wxjmfauth@gmail.com |
Le mercredi 22 octobre 2014 10:54:51 UTC+2, Chris Angelico a écrit :
>
>
>
> Poor performance is a crime. Python is innocent until proven guilty.
> And the burden of proof is seldom met.
>
>
>>> timeit.repeat("('abc'*1000 +'z')[:-1]")
[1.4107052484530875, 1.3924774653606349, 1.3934069318508087]
>>> timeit.repeat("('abc'*1000 +'EURO')[:-1]")
[5.427585698976522, 5.39270195514851, 5.40894516974776]
>>>
Not only this disastrous (and systematic) behaviour
is explainable, I have no problem to explain this
to those who wish to listen.
jmf
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
(-1)**1000 "ast" <nomail@invalid.com> - 2014-10-22 10:27 +0200
Re: (-1)**1000 Chris Angelico <rosuav@gmail.com> - 2014-10-22 19:54 +1100
Re: (-1)**1000 "ast" <nomail@invalid.com> - 2014-10-22 11:27 +0200
Re: (-1)**1000 Peter Otten <__peter__@web.de> - 2014-10-22 12:29 +0200
Re: (-1)**1000 Michiel Overtoom <motoom@xs4all.nl> - 2014-10-22 12:38 +0200
Re: (-1)**1000 Tim Chase <python.list@tim.thechases.com> - 2014-10-22 05:43 -0500
Re: (-1)**1000 Peter Otten <__peter__@web.de> - 2014-10-22 13:02 +0200
Re: (-1)**1000 Ian Kelly <ian.g.kelly@gmail.com> - 2014-10-22 08:23 -0600
Re: (-1)**1000 Ian Kelly <ian.g.kelly@gmail.com> - 2014-10-22 08:29 -0600
Re: (-1)**1000 Ned Batchelder <ned@nedbatchelder.com> - 2014-10-22 11:01 -0400
Re: (-1)**1000 wxjmfauth@gmail.com - 2014-10-22 04:35 -0700
Re: (-1)**1000 Peter Otten <__peter__@web.de> - 2014-10-22 11:13 +0200
Re: (-1)**1000 Terry Reedy <tjreedy@udel.edu> - 2014-10-22 13:15 -0400
Re: (-1)**1000 Dave Angel <davea@davea.name> - 2014-10-24 13:57 -0400
Re: (-1)**1000 Tony the Tiger <tony@tiger.invalid> - 2014-10-26 20:07 +0000
Re: (-1)**1000 Ned Batchelder <ned@nedbatchelder.com> - 2014-10-26 16:45 -0400
Re: (-1)**1000 Stefan Behnel <stefan_ml@behnel.de> - 2014-10-29 20:31 +0100
csiph-web