homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skrah
Recipients Kiriakos.Vlahos, brian.curtin, eric.smith, loewis, mark.dickinson, sjmachin, skrah
Date 2010年09月30日.11:07:05
SpamBayes Score 0.002562315
Marked as misclassified No
Message-id <1285844832.57.0.987060669081.issue9980@psf.upfronthosting.co.za>
In-reply-to
Content
I benchmarked _PyOS_ascii_strtod without the macros, with the macros
and with always calling both fnstcw/fldcw. There is no real difference:
import timeit
s = "str(38210.0)"
t = timeit.Timer(stmt=s)
t.timeit(number=10000000)
t.timeit(number=10000000)
t.timeit(number=10000000)
# None
>>> t.timeit(number=10000000)
3.7519991397857666
>>> t.timeit(number=10000000)
3.759944200515747
>>> t.timeit(number=10000000)
3.7730538845062256
>>>
# Macros
>>> t.timeit(number=10000000)
3.780745029449463
>>> t.timeit(number=10000000)
3.777444839477539
>>> t.timeit(number=10000000)
3.7622230052948
# fnstcw/fldcw
>>> t.timeit(number=10000000)
3.765655994415283
>>> t.timeit(number=10000000)
3.7517099380493164
>>> t.timeit(number=10000000)
3.749257802963257
History
Date User Action Args
2010年09月30日 11:07:12skrahsetrecipients: + skrah, loewis, sjmachin, mark.dickinson, eric.smith, brian.curtin, Kiriakos.Vlahos
2010年09月30日 11:07:12skrahsetmessageid: <1285844832.57.0.987060669081.issue9980@psf.upfronthosting.co.za>
2010年09月30日 11:07:05skrahlinkissue9980 messages
2010年09月30日 11:07:05skrahcreate

AltStyle によって変換されたページ (->オリジナル) /